使用 IntelliJ IDEA 的 Git 插件可以做很多事情,但我还没有找到重命名分支的方法。有吗?
我知道我总是可以调出一个终端并执行 git branch -m source target
,但我也希望找到一个 GUI 解决方案。
最佳答案
此功能有几个悬而未决的问题:
- IDEA-89927 : 重命名分支不会被 IDEA 捕获
- IDEA-131021 : 添加“重命名分支” Action
后者尚未实现。
前者确实显示了当前可用的唯一方法(OP 提到):
Go to the command line and execute
git branch -m <old_name> <new_name>
但即使这样在 IDEA 上也有刷新问题。
2017 年 1 月更新:IDEA-131021可能已经实现,如 Pavlo Zvarych 所示的 answer .与proposal一致:
introduce menu item in
Git | Branches
popup for current branch and place the actions related to the current branch in its second-level submenu.
关于git - 如何从 IntelliJ IDEA 中重命名本地 Git 分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31901384/