【发布时间】:2019-03-05 05:33:23
【问题描述】:
有人建议我使用avoid git pull --autostash,而是使用:
git alias.pull-autostash '!git stash push && git pull --rebase && git stash pop'
当索引或工作树没有变化时,做:
$ git stash push
给予:
No local changes to save
另外一个问题是退出状态是0。
然后任何stash pop 都会pop 一些未被推送的东西。
如何强制创建一个空的存储,例如git commit --allow-empty?
【问题讨论】: