DEV Community

Muhammad Iliyas
Muhammad Iliyas

Posted on • Edited on

Git Commit ID Explained.

Ever wondered about a Git Commit ID ?
(A super long SHA1 Hash String πŸ˜…)

  • A Git commit ID is an SHA-1 hash of every important thing about the commit.
  • It stores :
    • The content of commit as a BLOB.
    • Commit date.
    • Committer's name and email address.
    • Log message.
    • The ID of the previous commit(s).
  • Try it out to find more information about a Git Commit ID.
    • $ git cat-file commit <commit_id>

Top comments (0)