用例场景如下: git checkout branch-1
[introduce some changes I don't want to commit (but want to preserve)]
git stash save "my useful changes"
git checkout branch-2
[do some business with branch-2]
gi
我经常会尝试检出一个新的远程分支(创建一个本地分支,但这可能与我的问题无关),并且git失败以下错误 error: Your local changes to the following files would be overwritten by checkout: Please, commit your changes or stash them before you can switch br