This content originally appeared on DEV Community and was authored by lnoueryo
Rename feature/a to feature/b
# make sure that feature/a is selected on the local branch
git checkout feature/a
# rename the local branch to feature/b
git branch -m feature/b
# push the new branch to the remote
git push origin feature/b
# delete the old branch on the remote
git push origin --delete feature/a
This content originally appeared on DEV Community and was authored by lnoueryo
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.
APA
MLA
lnoueryo | Sciencx (2024-09-24T06:14:45+00:00) Renaming a Git Branch. Retrieved from https://www.scien.cx/2024/09/24/renaming-a-git-branch/
" » Renaming a Git Branch." lnoueryo | Sciencx - Tuesday September 24, 2024, https://www.scien.cx/2024/09/24/renaming-a-git-branch/
HARVARDlnoueryo | Sciencx Tuesday September 24, 2024 » Renaming a Git Branch., viewed ,<https://www.scien.cx/2024/09/24/renaming-a-git-branch/>
VANCOUVERlnoueryo | Sciencx - » Renaming a Git Branch. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/09/24/renaming-a-git-branch/
CHICAGO" » Renaming a Git Branch." lnoueryo | Sciencx - Accessed . https://www.scien.cx/2024/09/24/renaming-a-git-branch/
IEEE" » Renaming a Git Branch." lnoueryo | Sciencx [Online]. Available: https://www.scien.cx/2024/09/24/renaming-a-git-branch/. [Accessed: ]
rf:citation » Renaming a Git Branch | lnoueryo | Sciencx | https://www.scien.cx/2024/09/24/renaming-a-git-branch/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.