[英]Rebasing instead of merge in Visual Studio Code's git integration
In Visual Studio Code, there's a "Syncronize changes" button for Git repositories in the bottom left corner. 在Visual Studio Code中,左下角有一个用于Git存储库的“同步更改”按钮。 By default, it uses the "merge" functionality instead of rebase, which creates ugly merge commits.
默认情况下,它使用“合并”功能而不是变基,这会创建难看的合并提交。
How do you change this to do a rebase? 您如何更改此设置以进行重新设置?
In versions 1.28 and later there is a git.rebaseWhenSync
setting. 在1.28版和更高版本中,有一个
git.rebaseWhenSync
设置。
In older versions you can: 在旧版本中,您可以:
git config pull.rebase true
from integrated terminal to rebase when you click Synchronize Changes button. git config pull.rebase true
当您单击“ 同步更改”按钮时,从集成终端到git config pull.rebase true
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.