I have a modified file on the master branch.
I do a git checkout myfile, check git status and the master branch is up-to-date with no modified files.
But when I checkout another branch and come back with git checkout master the modified file shows up again. I don´t know why, I even cleaned the stash, but still, whenever I switch back to master, that file shows up as modified again.
Anyone a hint how to solve that?
git checkout -- filename