I have noticed several times in the last few months, that sometime after pushing changes to my remote repo (GitHub, though I don't think it matters) my local git will believe the changes it has have not been pushed. In all cases, these are changes that do in face exist on the remote. Most-recently was this morning. I did git pull origin master
on my machine at work to fetch three commits that were made from home. Then, when I did git status
it showed the same three changes as local changes that have not been pushed to the remote.
Usually, I just delete the local repository and re-clone it from GH, but to be honest I'm getting tired of doing that. Between 4 machines sharing this code, it's starting to get silly how often I have to do this.
Does this sound familiar to anyone? Is there a better solution than to just blow away and re-clone? This has happened on Mac OS and Linux systems both, so I don't think it is specific to any OS.