Skip to content

Instantly share code, notes, and snippets.

View ken-master's full-sized avatar

Ken ken-master

View GitHub Profile
@ken-master
ken-master / gist:fcd5aa8fd39fba6577b3ed8e6deec54a
Created April 12, 2016 05:43 — forked from lttlrck/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