Key concepts

Commit hash

A commit hash is a unique identifier for each commit in Git. It's a 40-character hexadecimal string that serves as a unique address for the commit. You can use the first few characters of the hash to refer to a commit, as long as it's unique within the repository. For example:

  • Full hash: 346ca091076783c70623aba03fb7139d3d27134f
  • Shortened hash: 346ca09

The commit hash is crucial for identifying and working with commits in Git. It allows you to reference specific commits when checking out, reverting, or comparing changes.

© 2024-2025 GitByBit.All rights reserved.