Skip to main content

Special usecases

rename branch

  • git checkout <old_name>
  • git branch -m <new_name> (move/rename the local branch)
  • git push origin -u <new_name> (push new branch to remote)
  • git push origin --delete <old_name> (remove old branch from remote)