A Useful Git Tip.

Last night a work tool received an update that my team wasn’t ready for. I was able to run git log and git checkout to go back to a working state.

I’ve since found a quicker way, which just goes back one commit, without looking at the log. (We check for updates once a day, and on average seems to be an update or two a week. So even the most detailed changelog wouldn’t have helped too much here.)

git reset HEAD~1

Maybe someone else can use this tidbit too!

Leave a Reply

Your email address will not be published. Required fields are marked *