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

Some problems for git beginners

From
ZZhangJinbao <zhang709787793@icloud.com>
Date
Oct 9, 2021, 07:43 UTC
Message-ID
<2EC9E24E-A8FD-4851-9F6A-F3D104465A23@icloud.com>
Hello! Sorry to bother you in your busy schedule.
As a git beginner, I have a few simple questions to ask you
First, how to implement the algorithm when there is file renaming in Git directory?
By comparing the SHA1 value of the file, and then calling the GIT MV command?
Second, how to implement the algorithm when there is file movement in Git directory?
How is the tree object updated?
Third, when a commit event occurs, the current blob file stores the full amount of data, while the previous version stores the incremental data
But I didn't find out how to (local git database) when I actually used it.
When git clone is used, the results are close to the conclusion
These are not found in the book, so I have to bother you.
I hope you can help me solve my confusion when you are free
thank you very much indeed
Next: Bagas Sanjaya
Message 1 of 4 in “Some problems for git beginners”
  1. ZhangJinbaoOct 9, 2021
  2. Bagas SanjayaOct 9, 2021
  3. Philip OakleyOct 9, 2021
  4. Philip OakleyOct 11, 2021

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.