In my case when I had this problem. I had a local file that I had renamed on the remote.
When trying to git pull
Git told me the new filename was not tracked -- which it was on the remote although it didn't yet exist on local.
Because there was no instance of it locally I couldn't do git pull
until I did git rm
on the old filename (which wasn't obvious at first because of my stupid idea of renaming it).