Rod McLaughlin

When Git lies to you - "everything up to date" - when it isn't (17 feb 13)

It's probably because you are in "detatched head mode". Sounds painful, but there's a cure:

   git push repo master

# It says "Everything up to date", but it's lying.
   git log -1

commit ebf62e1074e8008e1923b06e043fd0765e4879ec

# memorize the 20-byte hex number after the word 'commit'

   git checkout master
   git reset --hard ebf62e1074e8008e1923b06e043fd0765e4879ec
   git push repo master

For a more detailed discussion by people who actually know what they're talking about, the redoubtable is once again on the ball:


Portland London