Next | Join my army of git zombies! | 11 |
Every commit, and indeed every version of every file, is assigned an ID number
The ID number is a 160-bit number derived from the object's contents
Later on we'll see how, and why this is important
Git jargon: the ID number is called the object's hash or sometimes SHA
(The name of the hash-calculating algorithm is "SHA1")
You can always refer to an object by its ID number
For example:
git checkout 06e5d848f506564975199164a902af7180e987be
"Make the working tree look like commit 06e5d848f506564975199164a902af7180e987be"
git show --raw 06e5d848f506564975199164a902af7180e987be
"Display commit 06e5d848f506564975199164a902af7180e987be"
Next | ![]() |
Copyright © 2011 M. J. Dominus |