How can I rename my branch from TortoiseGit?

Viewed 22275
3 Answers

If you want to rename just the local branch, you can refer to other answers. Please follow these steps to rename local and remote branch.

  1. Right click the repository -> TortoiseGit -> Browse References.

enter image description here

  1. Select the branch you want to rename and hit F2 button and type a new name. The branch is now been renamed locally.

enter image description here

  1. Right click the renamed branch and select "switch/checkout to this.."

enter image description here

  1. Now right click the repository and select "Git Commit -> "renamed branch"

enter image description here

  1. Git commit window will open. Type a commit message and tick the checkbox "Message Only" in the bottom left corner, and then click "Commit & Push"

enter image description here

Press the upvote button if this answer has helped you.

Related