English 中文(简体)
如何 吉苏处理档案问题
原标题:how does Git handle deltas of files
  • 时间:2012-05-17 08:37:49
  •  标签:
  • git

from what i could figure out, Git stores content of each version of the file in a blob, referenced in a tree with the filename etc.. If there are 3 files with exactly the same content, these three files are referenced to the same blob. A new version of a file has a new blob with entire content of the file.

Now, since Git doesn t store deltas but store the entire contents of the file for each version in a seperate blob object, will this result in increased storage? Is this a major issue to be considered for deciding on Git for a project? Also, is my understanding of the Git handling of versions correct?

最佳回答

在一个层次上,git储存物体作为简单的档案,按其左轮索引。 如果对新版本的档案进行核对,就会获得新的洗衣,从而产生全新的档案。

在这种水平下,甘蔗可以将lob球结合到这些包裹中的“包装”栏目中,这些书包类似,可以压缩到直线压缩。 除要求用户偶尔进行类型外

git repack -a -d

这一过程对用户和储存结构具有透明度。

try the above command on your resository and see how it affects the size of your .git directory.

问题回答

暂无回答




相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签