Skip to content

Commit 7630832

Browse files
Abhishek-sophoRichardLitt
authored andcommitted
add note on updating remote branch name (k88hudson#290)
* add note on updating remote branch name * Style edits.
1 parent bce2f0d commit 7630832

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,11 @@ To rename a different (local) branch:
11011101
```sh
11021102
(master)$ git branch -m old-name new-name
11031103
```
1104+
To delete the `old-name` remote branch and push the `new-name` local branch:
1105+
1106+
```sh
1107+
(master)$ git push origin :old_name new_name
1108+
```
11041109

11051110
<a name="i-want-to-checkout-to-a-remote-branch-that-someone-else-is-working-on"></a>
11061111
### I want to checkout to a remote branch that someone else is working on

0 commit comments

Comments
 (0)