12 October 2023

GIT - rename a branch

Here's how to rename a GIT branch from Windows Explorer. This assumes GIT is installed on the computer.

  • Enter git branch -m "{new name}".
  • Enter git push origin :"{old name}" "{new name}".
  • Enter git push origin -u "{new name}".