git - 如何从 IntelliJ IDEA 中重命名本地 Git 分支?

标签 git intellij-idea

使用 IntelliJ IDEA 的 Git 插件可以做很多事情,但我还没有找到重命名分支的方法。有吗?

我知道我总是可以调出一个终端并执行 git branch -m source target,但我也希望找到一个 GUI 解决方案。

最佳答案

此功能有几个悬而未决的问题:

后者尚未实现。
前者确实显示了当前可用的唯一方法(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.

https://youtrack.jetbrains.com/_persistent/image.png?file=74-343247&c=true&rw=526&rh=121&u=1473876457355

关于git - 如何从 IntelliJ IDEA 中重命名本地 Git 分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31901384/

相关文章:

java - 将 VisualVM 与 IntelliJ 结合使用

java - 如何使用参数和重定向符号 < 运行 IntelliJ IDEA?

java - 如何在 intellij 中为 play 框架应用程序运行单元测试

git - 在另一个开发人员重置后修复 git 分支

windows - 在 Windows 上更改 .gitconfig 位置

node.js - 列出git中master和当前分支之间的所有文件?如果有任何 Node 包可以将结果推送到数组 :) 中,那就太好了

build - 如何在 intellij idea 中构建一个 java swing 应用程序

java - 使用 IntelliJ IDEA 15.0.2 生成签名 APK 时出现 NullPointerException

git - Windows客户端的TortoiseGit和GitHub可以共存吗?

git - 为什么 git rebase 需要三向 merge ?