Can't checkout to other branches because ignored file has local changes?
In my case, it was due to my former
git update-index --assume-unchanged <filename>
that was conflicting on that file. Undoing this situation via a
git update-index --no-assume-unchanged <filename>
And committing the resulting new status, everything fixed up.
Update: fix typo in parameter.