What is Git ?

Git is a free and open source source code management ( SCM ) tool which has been designed for distributed development environment so that anyone, located at any place can contribute to the centralised source code. Git is very light weight, easy to understand and fast performance tool.

Git is a much better tool than other SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.

Git Has Integrity

Everything in Git is checksummed before it is stored and is then referred to by that checksum. This means it’s impossible to change the contents of any file or directory without Git knowing about it. This functionality is built into Git at the lowest levels and is integral to its philosophy. You can’t lose information in transit or get file corruption without Git being able to detect it.

The mechanism that Git uses for this checksumming is called a SHA-1 hash. This is a 40-character string composed of hexadecimal characters (0–9 and a–f) and calculated based on the contents of a file or directory structure in Git. A SHA-1 hash looks something like this:

24b9da6552252987aa493b52f8696cd6d3b00373

You will see these hash values all over the place in Git because it uses them so much. In fact, Git stores everything in its database not by file name but by the hash value of its contents.

Reference – https://git-scm.com/book/en/v2/Getting-Started-What-is-Git%3F

Follow Lynxbee

Leave a Reply / Ask Question