Git Commit Hash
Every commit has a commit hash: a unique ID made of 40 letters and digits, calculated from the commit's content.
You rarely need all 40 characters. The first 7 are usually enough, and that is what git log --oneline shows. Use the hash to point at a commit in commands like git checkout, git revert or git diff.
See the short hashes
git log --oneline
90fe82c (HEAD -> main) Added new line to index.html
f50d2ba First release of Hello World!
Get the hash of the current commit
git rev-parse --short HEAD
90fe82c