I'm having an issue where I'm trying to checkout a branch, but I can't because:
Your local changes to the following files would be overwritten by checkout: lib/file.php Please commit your changes or stash them before you can switch branches. Aborting
Ok, so I run git status, and I get:
On branch current-branch nothing to commit, working directory clean
I needed to edit .git/info/exclude to exclude lib/file.php because that file was causing problems on my specific machine. But when I navigate to exclude, I don't see the file listed anymore. I checked all three branches that are currently active but I don't see lib/file.php listed in my exclude file.
What is going on here?
Not a duplicate - answer/link suggested the author never actually commited files. I understand that concept. This is a different issue.