Skip to content

Instantly share code, notes, and snippets.


Oshadha Gunawardena RockyRx

View GitHub Profile
RockyRx / rename_git_branch.bash
Last active Mar 21, 2019
Renaming a GIT branch - local and remotly
View rename_git_branch.bash
git branch -m <old_name> <new_name> #1
git push origin --delete <old_name> #2
git branch --unset-upstream #3 - This step is required since GIT is still holds pull/push merge configuration with the old branch.
git push --set-upstream origin <new_name> #4
You can’t perform that action at this time.