Unravelling Git: The secrets of the commit hash
summary
Explains that a Git commit hash is a SHA-1 fingerprint built from the parent commit hash (one or two for merges), commit message, author metadata, timestamps and the file changes, so any amend, rebase or cherry-pick produces a new hash; rebasing recreates and recommits commits (changing author/commit times) and cherry-pick copies changes but yields a different hash. Notes SHA-1 collision risk as astronomically small (octillion-scale), shows common workflows and risks like when to use force push on main vs allowed force on feature branches.
AI-written summary · about
