gpt4 book ai didi

git - 是否可以使用 Visual Studio git 工具执行 Git Pull --rebase(并且可以默认设置)

转载 作者:IT王子 更新时间:2023-10-29 01:06:29 30 4
gpt4 key购买 nike

首先,正如标题所说,是否有可能在一个步骤中(即不是 fetch 然后是 rebase),做一个 pull --rebase

其次,是 Visual Studio 中的一个设置,强制内置的 Team Explorer git 工具始终执行 pull --rebase 而不是标准的 pull (fetch/merge).

我知道您可以使用 git config branch.autosetuprebase always 在全局或项目配置文件中设置默认值,但我想具体了解 Visual Studio 是否可以更新/更改该设置或有一个类似的选项,就像大多数其他 GUI 一样。我还没有找到任何东西,所以它似乎没有,因此这个问题。

最佳答案

在 VS2017 中,您可以使用内置功能更改 rebase 的 git 设置:转到 Team Explorer -> Home -> Settings -> 全局设置存储库设置 -> 设置 pull 时重新设置本地分支:True ( screenshot )

关于git - 是否可以使用 Visual Studio git 工具执行 Git Pull --rebase(并且可以默认设置),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29399769/

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