After I run git update-index --assume-unchanged path/to/file on a particular branch, I'm unable to switch branches using git checkout.
It throws the following error:
error: Your local changes to the following files would be overwritten by checkout:
path/to/filePlease, commit your changes or stash them before you can switch branches.
Aborting
But both git diff & git status tells me there is no difference & there is nothing to commit/stash.
How do I switch out of the branch?
Is there a better alternative to git update-index --assume-unchanged  (other than .gitignore, because I don't want it to be ignored)? (Same as question 2 @ git update-index --no-assume-unchanged doesn't work)
 
     
    