add note on updating remote branch name

This commit is contained in:
Abhishek Kumar 2019-11-06 20:11:39 +05:30 committed by GitHub
parent bce2f0dd27
commit 243ba44af5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
$ 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