如何从 TortoiseGit 重命名我的分支? [英] How can I rename my branch from TortoiseGit?

查看:530
本文介绍了如何从 TortoiseGit 重命名我的分支?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何从命令行重命名分支,但是 - 因为我使用的是 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.

感谢您的回答:)

推荐答案

在文件管理器中,打开您的项目根目录(您的 .git 文件夹所在的位置).

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

右键单击并转到:

TortoiseGit > Switch/Checkout

确保 Switch To 选项为 Branch.然后单击由 ...

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.

点击F2.

重命名您的分支.按 Enter.点击确定.

Rename your branch. Hit Enter. Click OK.

现在在下拉菜单中,您会发现分支名称已更新.

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

这篇关于如何从 TortoiseGit 重命名我的分支?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆