Skip to content

Instantly share code, notes, and snippets.

@codersofthedark
Created January 24, 2019 13:09
Show Gist options
  • Save codersofthedark/95861b681900edb01d6c08311e5fe05a to your computer and use it in GitHub Desktop.
Save codersofthedark/95861b681900edb01d6c08311e5fe05a to your computer and use it in GitHub Desktop.
#rename branch on local
git branch -m old-name new-name
#delete old branch at origin and push new branch to origin
git push origin :old-name new-name
#reset the upstream for local new branch
git push origin -u new-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment