gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 00:46:29 27 4
gpt4 key购买 nike

使用 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com