2012-09-24 3 views
17

git update-index --assume-unchanged path/to/file을 특정 분기에서 실행 한 후 git checkout을 사용하여 분기를 전환 할 수 없습니다.git checkout --assume-unchanged files에 오류가 발생했습니다.

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)

답변