我git pull --rebase --autostash一直在工作中使用(在 git bash 中,如果这很重要)。
但是由于某种原因,我的一些同事无法使用它,现在我发现它在家里不起作用。
在家里,我在 macbook 上使用 git 2.6.3。
错误信息很简单: error: unknown option `autostash'
有任何想法吗 ?
该选项仅对 Git 2.9(2016 年 6 月)有效
请参阅“可以“ git pull”自动隐藏和弹出挂起的更改吗? ”
你可以添加一个配置
git config pull.rebase true
git config rebase.autoStash true
Run Code Online (Sandbox Code Playgroud)
这样,只git pull需要一个。
| 归档时间: |
|
| 查看次数: |
2073 次 |
| 最近记录: |