This way git uniquely identifies :
- blobs (files)
- trees (groups of files and/or other trees)
- commits (a single tree)
among others.
If you type:
gitkyou will be able to see every single commit, their hashes, as well as all the files of each commit and their hashes
You can use commands such as:
git log 540991fto view blob content,
git ls-treeto view tree information,
git showfor information about commits,
And so on and so forth.
Note the git is constructed around the concept that most hashes are very different and that the beginning of the hash is sufficient to identify the complete hash. That's what I did above in the git log command: used the shortened hash, which actually identifies a single blob in my system.
Use git help
Thoughts?
No comments:
Post a Comment