What is a hash in Git?

Experience Level: Junior
Tags: Git Source control


In Git, each commit has 40 character identifier that is calculated using SHA-1 hashing algorithm. This commit identifier is called hash.

When you execute git log command, you can see that each commit has hash.

Related Git job interview questions
Git for beginners
Git for beginners

Are you learning Git? Try our test we designed to help you progress faster.

Test yourself