A short article about how Git hash-based decentralized filesystem work - git github
If you are a programmer, you probably use GIT. But have you ever wondered how is GIT working deep inside? I do. Fortunately, you can find many documents on the web about GIT internals. When I read them, I have to realize that GIT is a relatively simple but super genius system. In this article, I would show you, how GIT works deep inside. Come with me to the deep of the rabbit hole.
The SHA1 hash of the content is 20 bytes. The first byte defines the folder in the objects folder, and the other 19 bytes will be the name of the file. For example, if the content hash is 10116ede2f0bcf2ec0720843616e4a5250ae5268 then it will mapped to objects/10/116ede2f0bcf2ec0720843616e4a5250ae5268.
100644 blob 5f71dbb20efc1dc9bd95e116ebc403659556b58a .gitignore 100644 blob f288702d2fa16d3cdf0035b15a9fcbc552cd88e7 LICENSE 100644 blob 49e96aecc3c354402c153d759e900354cfcb7c80 README.md 040000 tree 7054d5d9fd2431c4ff4f27537d6a5388b3c73ca9 database 100644 blob 9b50d8c47e0ad56aab6aa570f344c6db5409a955 env.development 100644 blob a473235e1bf1461feef090b2a62b2066d75c7d97 env.template 100644 blob a0f18dc0b81d5122a8eeca6903868f1ea4721ebc package.
Creating a branch would need a full directory copy in a standard filesystem, but Git only generates one single file that points to the tree of the source of the branch. If you change a file and do a commit, only a commit object is generated that points to the changed tree that contains the file .
United States Latest News, United States Headlines
Similar News:You can also read news stories similar to this one that we have collected from other news sources.
Remember Human Nature | HackerNoonHow to Live on 24 Hours a Day, by Arnold Bennett is part of HackerNoon’s Book Blog Post series. Chapter VI: Remember Human Nature - projectgutenberg hackernoonbooks
Read more »
The Possibility of the 'Finite' and Yet 'Unbounded' Universe | HackerNoonRelativity: The Special and General Theory by Albert Einstein is part of HackerNoon’s Book Blog Post series. - science physics
Read more »
Laws of Variation | HackerNoonOn the Origin of Species 1st Edition by Charles Darwin is part of HackerNoon’s Book Blog Post series. - science biology
Read more »