有没有一种方法可以使GitHub Desktop对master分支建立基础? [英] Is there a way to make GitHub Desktop rebase a branch against master?

查看:289
本文介绍了有没有一种方法可以使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分支建立基础?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆