Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
296 views
in Technique[技术] by (71.8m points)

git - 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 :)

question from:https://stackoverflow.com/questions/36133271/how-can-i-rename-my-branch-from-tortoisegit

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...