git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: how the commit ID come from in GIT?

From
KKKonstantin Khomoutov <kostix+git@007spb.ru>
Date
Nov 5, 2012, 23:04 UTC
Message-ID
<20121105230430.GK5210@localhost.localdomain>
In-Reply-To
<1352145846.26267.YahooMailClassic@web141404.mail.bf1.yahoo.com>
On Mon, Nov 05, 2012 at 12:04:06PM -0800, hong zhang wrote:
> Could anyone explain how the git commit ID will include all the files
> that devloper makes changes on?
> 
> How git commit ID works?

To expand on the answer provided by Magnus, I would also suggest reading the classic "Git from the bottom up" document [1], and if you want a totally informal and fun introduction to how these cryptographic hashes come about and why they are useful, I suggest reading "The Git Parable" [2].

1. http://newartisans.com/2008/04/git-from-the-bottom-up/
2. http://tom.preston-werner.com/2009/05/19/the-git-parable.html
Previous: Magnus Bäck
Message 3 of 3 in “how the commit ID come from in GIT?”
  1. hong zhangNov 5, 2012
  2. Magnus BäckNov 5, 2012
  3. Konstantin KhomoutovNov 5, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.