Exit status is 0 but autostash requires manual merging
问题 When I do: git pull --rebase --autostash Sometimes I get a message that there was a conflict applying the stash and I'll need to merge it manually. What's concerning to me is that the exit status is 0 . How do I get a non-zero exit status if the autostash didn't reapply cleanly? 回答1: With non-zero exit code you cannot distinguish pull error from stash pop error. My advice is to avoid autostash. It seems convenient when it works but is problematic when it doesn't. And if you do things like git