I have two repos that claim to be clean. One was originally cloned from the other and is used for dev work.
There are a few files that I can see are not the same. However when I try pulling either way it says everything is up to date.
How is this possible?
Did that file miss a commit somehow? ...but shouldn't the difference be noticed regardless?
Do I need a refresh of some sort?
I seem to have had the same problem.
There was a difference in the working copy and the index which did not show up in git status
cat file # show file in working copy
git show :file # show file in index/staging
these outputs had clear differences while git status said it was a clean working copy.
After some searching i found that the index was probably corrupt and found https://makandracards.com/makandra/5899-how-to-fix-a-corrupt-git-index
rm .git/index
git reset
which fixed the problem for me. If any files were staged they are probably lost but at least now git sees the changes in the local working copy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With