Rename a branch

$ git branch -m [new-name] # creates a new bnrach
$ git push origin -u [new-name] # pushes new branch to remote
$ git push origin --delete [old-name] # deletes old branch on remote
  • git