为什么--autostash选项不起作用??? (与git pull --rebase一起使用) [英] Why won't --autostash option work ??? (used with git pull --rebase)
本文介绍了为什么--autostash选项不起作用??? (与git pull --rebase一起使用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在工作中使用git pull --rebase --autostash
(如果重要的话,请在git bash中使用).
I use git pull --rebase --autostash
all the time at work (in git bash, if that matters).
但是由于某种原因,我的一些同事无法使它正常工作,现在我发现它在家里不起作用.
But for some reason, some of my colleagues can't get it to work, and now I discovered it doesn't work at home.
在家里,我在Macbook上使用git 2.6.3.
At home I'm using git 2.6.3 on a macbook.
错误消息很简单:error: unknown option `autostash'
有什么想法吗?
推荐答案
该选项仅对Git 2.9(2016年6月)有效
That option is only valid for Git 2.9 (June 2016)
请参阅""git pull
"是否可以自动存储和弹出未完成的更改?"
See "Can "git pull
" automatically stash and pop pending changes?"
您可以添加配置
git config pull.rebase true
git config rebase.autoStash true
那样,只需要一个git pull
.
这篇关于为什么--autostash选项不起作用??? (与git pull --rebase一起使用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文