gpt4 book ai didi

git - 源树 : How to create multiple hotfix branches with Git Flow

转载 作者:太空狗 更新时间:2023-10-29 13:30:27 24 4
gpt4 key购买 nike

当 Sourcetree 已经存在时,如何在 Sourcetree 中创建第二个修补程序分支?每当我尝试时,它都会告诉我先完成当前的修补程序。有什么方法可以拥有多个修补程序分支?

最佳答案

好的,明白了。默认情况下,Sourcetree 不允许您使用其 UI/Git Flow 一次创建多个修补程序分支。它希望您在制作新的之前“Git Flow > Finish”第一个。

但无论如何您都可以创建第二个修补程序...

此存储库的永久解决方案

  1. 在 Sourcetree 中点击终端
  2. git config --add gitflow.multi-hotfix true

现在您可以像往常一样:Git Flow > 开始新的修补程序

临时解决方案(只允许这一次)

  1. 在 Sourcetree 中点击终端
  2. git checkout -b hotfix/my_new_hotfix master

现在您有了一个名为 my_new_hotfix 的新修补程序

关于git - 源树 : How to create multiple hotfix branches with Git Flow,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46434529/

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