Git Pull - Everything up to date, but it's not

Check whether you are on the right branch and have checked out the same revision you are comparing to: git checkout HEAD


I had a similar problem, but needed a different solution. The local versions on one computer were not getting updated from the GitHub repo, which was ahead based on work I had done and pushed from a second computer the night before. It kept telling me all files were up-to-date, even though clearly the ones on the first computer were not the same as the ones on the second or the GitHub repo.

What finally fixed this problem for me was adding a trash .txt file on the second computer (new and different from everything else there, so there would be no merge conflicts). I pushed that file to the repo, then made a new attempt to pull from the first. When it saw the new file it made the pull, and took all the other changes as well.

I'm sure there was a better soltution, and this is something I was doing wrong with git, but since it worked I wanted to post it, in case anyone else is having the problem I was.

Tags:

Git