Skip to content

Instantly share code, notes, and snippets.

View aliuosio's full-sized avatar
🎯

Osiozekhai Aliu aliuosio

🎯
View GitHub Profile
@aliuosio
aliuosio / gist:ca07c13448e2472e40119a74ae1a662a
Created June 2, 2017 13:16 — forked from stuart11n/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote