Skip to content

Instantly share code, notes, and snippets.

@lucymtc
Created October 3, 2017 20:17
Show Gist options
  • Select an option

  • Save lucymtc/f1a05fcc4a1aaf4f2fafd59cb8a97cb8 to your computer and use it in GitHub Desktop.

Select an option

Save lucymtc/f1a05fcc4a1aaf4f2fafd59cb8a97cb8 to your computer and use it in GitHub Desktop.
Rename git branch local & remote
git branch -m old_branch new_branch
git push --set-upstream origin new_branch
git push origin :old_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment