0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
My latest Git commit hash was:
5ba786fcc93e8092831c01e71444b9baa2228a4f
You may have noticed that even though we (you and I) both have the same content in our repositories, we have different commit hashes. While commit hashes are derived from their content changes, there's also some other stuff that affects the end hash. For example:
All this to say that hashes are (almost) always unique, and because they're generated automatically for you, you don't need to worry too much about what goes into them right now.
Git uses a cryptographic hash function called SHA-1 to generate commit hashes. We won't go into the details of how SHA-1 works in this course, but it's important to know because you might also hear commit hashes referred to as "SHAs".
Which does NOT affect the hash of a commit?