I got an email today saying:
if you did a git pull and included git hash X123 and ran tests, this could have corrupted your machine. You'll need to flush it and start again. If however you pulled before this, or after we applied the patch - then you're fine.
Assumptions:
- you have a stale repository (this is prior to running
git commit
) - I'm looking for something more sophisticated than trawling through
git log
results and seeing if I can see the hash
My question is: What is the git command to tell if my repo is currently before or after a particular commit?
Edit:
This is different to asking which branches contain a particular commit. I'm trying to see if my local stale repository contains a commit. (or that it definitely doesn't).