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.
Hi! I'm Alex, creator of GitByBit.
And this is Gitopedia—a reference that summarizes knowledge in my Git course.
Gitopedia is designed to be a personal knowledge base. When you progress through the main Git course in VS Code, you unlock all of these topics, one by one, bit by bit. This gives you time to digest the information and gradually build the mental model of Git. Here's an example of how it works:
Learning directly in VS Code lets you practice Git exactly as you would in real life, doing real jobs, writing real code. In addition, the course has access to your actual terminal, so it can point out mistakes, suggest workarounds, etc.
The course is FREE, there are no Ads or other bullshit. There are optional premium add-ons you can purchase, mainly to support my work (regrettably, I have to eat every day), but that's totally up to you.