add note on updating remote branch name (#290)

* add note on updating remote branch name

* Style edits.
This commit is contained in:
Abhishek Kumar 2019-11-11 18:20:37 +05:30 committed by Richard Littauer
parent bce2f0dd27
commit 76308321b0
1 changed files with 5 additions and 0 deletions

View File

@ -1101,6 +1101,11 @@ To rename a different (local) branch:
```sh
(master)$ git branch -m old-name new-name
```
To delete the `old-name` remote branch and push the `new-name` local branch:
```sh
(master)$ git push origin :old_name new_name
```
<a name="i-want-to-checkout-to-a-remote-branch-that-someone-else-is-working-on"></a>
### I want to checkout to a remote branch that someone else is working on