mirror of https://github.com/namibia/tips.git
Updated readme
This commit is contained in:
parent
819e1550df
commit
acd8501b5f
12
README.md
12
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)
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
|
@ -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
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
|
Loading…
Reference in New Issue