2012-09-24 25 views
17

git update-index --assume-unchanged path/to/fileを特定のブランチで実行した後、git checkoutを使用してブランチを切り替えることができません。git checkoutが--assume-unchangedファイルにエラーを投げる

error: Your local changes to the following files would be overwritten by checkout:

 path/to/file 

Please, commit your changes or stash them before you can switch branches.

Aborting

しかし、両方git diff & git statusは/スタッシュをコミットするものがないに違い&がない私に語った:

それは次のようなエラーがスローされます。

ブランチからどのように切り替えますか?

git update-index --assume-unchangedの代わりに(.gitignore以外は無視したくないので)良い方法がありますか? (質問2と同じgit update-index --no-assume-unchanged doesn't work

答えて

関連する問題