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.
Getting started
Key concepts
Git commands
Basics
git initgit addgit commitgit helpBranches
git branchgit switchgit mergegit rebaseStatus/History
git statusgit loggit diffgit showgit blamegit reflogReverting
git resetgit restoregit revertgit cleangit stashRemote repositories
git clonegit fetchgit pullgit pushgit remoteOther
.gitignore filegit checkoutgit configgit taggit worktreeGreat job!
You have unlocked all of the Gitopedia entries!