Skip to content

Instantly share code, notes, and snippets.

@Viktorminator
Last active March 20, 2019 13:54
Show Gist options
  • Save Viktorminator/d10f30f8dd8184f3dd75cc7a075ef788 to your computer and use it in GitHub Desktop.
Save Viktorminator/d10f30f8dd8184f3dd75cc7a075ef788 to your computer and use it in GitHub Desktop.
git checkout beta
# rename master to alpha
git push origin :master alpha
# delete master locally
git branch -D master
# rename live to master
git push origin :live master
# delete branch locally
git branch -D live
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment