我将一些本地配置保存在“假设未更改”文件中。随着时间的推移,我创建了几个分支,并且“假设未更改”文件也在这些分支之间发生了变化(添加更多本地配置)。如果我尝试检出一个旧的分支,就会遇到以下问题:
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
有没有解决方案,或更好的本地更改工作流程来保持未提交的更改?