如何禁用git pull.rebase(默认情况下在拉动时变基) [英] How to disable git pull.rebase (rebasing by default upon pull)
本文介绍了如何禁用git pull.rebase(默认情况下在拉动时变基)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试设置
git config --global pull.rebase false
和
git config pull.rebase false
当我跑步
git config --global pull.rebase
或
git config pull.rebase
我看到的是假的,但是当我运行 git pull ...
时,它仍在进行重新设置.我怎样才能使它消失呢?
I see false, but when I run git pull ...
it still is doing a rebase. How can I make this go away again?
推荐答案
最佳方式
不要使用 git pull
.只需运行 git fetch
,然后完成操作,运行 git merge
.
The best way
Don't use git pull
. Just run git fetch
and then when it's done, run git merge
.
(这也是进行基准拉取的最佳方法:请勿使用 git pull
.这是错误的工具.切勿使用." )
(This is also the best way to do rebase pulls: don't use git pull
. "This ... is wrong tool. Never use this.")
使用 git pull --rebase = false
.命令行标志将覆盖配置设置.
Use git pull --rebase=false
. The command line flag overrides the configuration setting.
这篇关于如何禁用git pull.rebase(默认情况下在拉动时变基)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文