有没有一种方法可以使GitHub Desktop对master分支建立基础?

编程入门 行业动态 更新时间:2024-10-26 04:21:20
本文介绍了有没有一种方法可以使GitHub Desktop对master分支建立基础?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我选择从主服务器更新" 时,它将创建一个合并提交.我宁愿重新设定基准.这可能吗?

When I choose "update from master", it creates a merge commit. I'd rather just have it re-base. Is this possible?

推荐答案

看来GitHub桌面中当前未包含该功能.我通常要做的是单击左上角下拉菜单中的存储库名称,然后单击在终端中打开".然后只需按照说明此处.

It does not appear that feature is currently included in GitHub desktop. What I normally do is click on the repository name in the drop-down menu in the top left and then click on "open in terminal". Then just follow the instructions here.

如果将其添加到.gitconfig,则GitHub桌面应根据这里.

If you add this to your .gitconfig, GitHub desktop should rebase according to here.

[pull] rebase = true

第二次更新:

GitHub桌面2.0现在支持内置的变基!它位于顶部菜单的分支部分下,或者您可以使用快捷方式⇧⌘E

Second Update:

GitHub desktop 2.0 now supports rebasing built in! It is under the branch section of the top menu or you can use the shortcut ⇧⌘E

更多推荐

有没有一种方法可以使GitHub Desktop对master分支建立基础?

本文发布于:2023-11-23 19:34:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622630.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:分支   基础   方法   Desktop   GitHub

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!