diff --git a/README.md b/README.md index 14dbb90..5a282e0 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ * [Remove branches that have already been merged with master](https://github.com/git-tips/tips#Remove branches that have already been merged with master) * [List all branches and their upstreams, as well as last commit on branch](https://github.com/git-tips/tips#List all branches and their upstreams, as well as last commit on branch) * [Track upstream branch](https://github.com/git-tips/tips#Track upstream branch) +* [Delete local branch](https://github.com/git-tips/tips#Delete local branch) +* [Delete remote branch](https://github.com/git-tips/tips#Delete remote branch) @@ -64,5 +66,15 @@ git branch -vv git branch -u origin/mybranch ``` +## Delete local branch +```sh +git branch -d local_branchname +``` + +## Delete remote branch +```sh +git push origin :remote_branchname +``` +