John, Thanks for replying . So In my case I am already having a bare repository of size ~ 25 G. That's why I was worrying about keeping additional free space of 25G for all time is not feasible . So I am maintaining a centralized data storage , where every application will store some data . So there might be a case , when I could have some 8 to 9 instances of such repositories . So in that case how much free space I should keep on disk? I don't have much experience with git, but I have a knowledge about how it internally stores every blobs and trees. So from that , I could say the extra space equal to "tree" object size (atmax 4-5 times ) should be enough. Because for all the major operations git traverses through the revWalk. The fact which is confusing me is that for total of 40G repositories , 4G free space is still doing as expected.
Could someone please put more light on how much space it should take? On Thu, Jun 12, 2014 at 12:21 AM, John Fisher <fishook2...@gmail.com> wrote: > > > On Wednesday, June 11, 2014 12:10:43 AM UTC-7, chetna chaudhari wrote: >> >> Hi, >> I read a line about git in https://help.github.com/ >> articles/working-with-large-files article >> >> >> * "In addition, if a repository is 10 GB in size, Git's >> architecture requires another 10 GB of extra free space available at all >> times." * >> can someone please explain , why git needs equal size extra space. And do >> it affect performance if it does not get that much free space ? >> >> >> -- >> CHETNA >> > > > Chetna, when you clone a Git repository you get a tree of all the files, > plus a .git directory at the root of the tree that contains the Git data > and all the file contents. So if you cloned it from a shared spot where it > was inited ( as a bare) , you'll have roughly twice as much diskspace used > as the original. Git may also require temp file space to do operations - > actual experts will know better than I. Anyway disk space is cheap, you > should always have free space available for any app on your system. > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to git-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- CHETNA -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.