Skip to content

Commit acd8501

Browse files
committed
Updated readme
1 parent 819e155 commit acd8501

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* [Remove branches that have already been merged with master](https://github.com/git-tips/tips#Remove branches that have already been merged with master)
1313
* [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)
1414
* [Track upstream branch](https://github.com/git-tips/tips#Track upstream branch)
15+
* [Delete local branch](https://github.com/git-tips/tips#Delete local branch)
16+
* [Delete remote branch](https://github.com/git-tips/tips#Delete remote branch)
1517

1618
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
1719
<!-- @doxie.inject end toc -->
@@ -64,5 +66,15 @@ git branch -vv
6466
git branch -u origin/mybranch
6567
```
6668

69+
## Delete local branch
70+
```sh
71+
git branch -d local_branchname
72+
```
73+
74+
## Delete remote branch
75+
```sh
76+
git push origin :remote_branchname
77+
```
78+
6779
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
6880
<!-- @doxie.inject end -->

0 commit comments

Comments
 (0)