我将一些本地配置保存在假设不变的文件中。随着时间的推移,我创建了几个分支,并且假定未更改的文件在两者之间演变(添加更多本地配置)。如果我尝试结帐一个较旧的分支,我会得到:
error: Your local changes to the following files would be overwritten by checkout:
<some assume-unchanged files>
Please, commit your changes or stash them before you can switch branches.
我不想提交它们并且不能存储它们(即使使用 --include-untracked 选项):
$ git stash
No local changes to save
是否有解决方案,或者有更好的本地更改工作流程以保持未提交?