How can I rename my branch from TortoiseGit?

I know the way to rename branch from command line, but - since I'm using TortoiseGit - I'm curious if there are any options to do such thing.

Thanks for the answers :)


In a File Manager, Open your Project root directory (where your .git folder is found).

Right click and go to:

TortoiseGit > Switch/Checkout

Ensure the Switch To Option to Branch . Then click the little button to the side of the drop down menu that is denoted by ...

A window will pop up showing the list of branches for you to choose.
Click on the one you want to rename.

Hit F2.

Rename your branch. Hit Enter. Click OK.

Now in the drop down menu, you'll find that the branch-name has been updated.


If you want to rename a branch which is not the current branch, open the Reference Browser using the context menu of a versioned folder (you might need to hold the Shift key when opening it).

在这里输入图像描述

select the branch you want to rename and then press F2 (or select rename in the context menu).

在这里输入图像描述

See https://tortoisegit.org/docs/tortoisegit/tgit-dug-browse-ref.html

链接地址: http://www.djcxy.com/p/2616.html

上一篇: 无法签出连字符开头的git分支(

下一篇: 我如何从TortoiseGit重命名我的分支?