I use git pull --rebase --autostash
一直在工作(如果重要的话,在 git bash 中)。
但由于某种原因,我的一些同事无法让它工作,现在我发现它在家里不起作用。
在家里,我在 MacBook 上使用 git 2.6.3。
错误消息很简单:error: unknown option `autostash'
有任何想法吗 ?
该选项仅对 Git 2.9(2016 年 6 月)有效
See "Can “git pull“自动隐藏和弹出待处理的更改? https://stackoverflow.com/a/30209750/6309"
您可以添加一个配置
git config pull.rebase true
git config rebase.autoStash true
这样一来,只需一个git pull
是需要的。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)