我在工作中一直使用 git pull --rebase --autostash
(在 git bash 中,如果重要的话)。
但由于某些原因,我的一些同事不能让它工作,现在我发现它在家里不起作用。
在家里,我在 macbook 上使用 git 2.6.3。
错误信息很简单:error: unknown option `autostash'
有什么想法吗?
最佳答案
该选项仅对 Git 2.9(2016 年 6 月)有效
参见“Can “git pull
” automatically stash and pop pending changes?”
你可以添加一个配置
git config pull.rebase true
git config rebase.autoStash true
这样,只需要一个 git pull
。
关于git - 为什么 --autostash 选项不起作用??? (与 git pull --rebase 一起使用),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39427235/