1
0
mirror of synced 2025-12-31 15:04:15 -05:00

Update renaming-a-branch.md (#25447)

Co-authored-by: Sarah Edwards <skedwards88@github.com>
Co-authored-by: Courtney Wilson <77312589+cmwilson21@users.noreply.github.com>
This commit is contained in:
Prashant Rawat
2023-05-11 20:34:19 +05:30
committed by GitHub
parent b966e7f5c9
commit f970a71e32

View File

@@ -42,6 +42,7 @@ From the local clone of the repository on a computer, run the following commands
```shell
$ git branch -m OLD-BRANCH-NAME NEW-BRANCH-NAME
$ git fetch origin
$ git push origin NEW-BRANCH-NAME
$ git branch -u origin/NEW-BRANCH-NAME NEW-BRANCH-NAME
$ git remote set-head origin -a
```