{"thread":{"id":"11673","subject":"Why very small repository has 2.7M size","startedAt":"2008-01-19T09:43:49Z","lastAt":"2008-01-19T13:59:58Z","messageCount":4,"participants":["Ping Yin","Jean-Luc Herren"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"65950","messageId":"46dff0320801190143h471e6d70ve5bf114335e1534@mail.gmail.com","threadId":"11673","inReplyTo":null,"subject":"Why very small repository has 2.7M size","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2008-01-19T09:43:49Z","receivedAt":"2008-01-19T09:43:49Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"$ ~/test/bar$ ll -h && git gc\ntotal 8.0K\n-rwxr-xr-x 1 yinping yinping 131 2008-01-19 17:35 Makefile.crawler\n-rwxr-xr-x 1 yinping yinping 131 2008-01-19 17:37 Makefile.search\nCounting objects: 87, done.\nCompressing objects: 100% (78/78), done.\nWriting objects: 100% (87/87), done.\nTotal 87 (delta 8), reused 87 (delta 8)\n\n$ ~/test/bar$ du -h . | tail -10\n8.0K    ./.git/objects/info\n2.5M    ./.git/objects/pack\n2.5M    ./.git/objects\n8.0K    ./.git/logs/refs/heads\n20K     ./.git/logs/refs/remotes/origin\n24K     ./.git/logs/refs/remotes\n36K     ./.git/logs/refs\n44K     ./.git/logs\n2.7M    ./.git\n2.7M    .\n\n-- \nPing Yin\n"},{"id":"65951","messageId":"46dff0320801190148y5a00c83m4825f4066547ddc2@mail.gmail.com","threadId":"11673","inReplyTo":"46dff0320801190143h471e6d70ve5bf114335e1534@mail.gmail.com","subject":"Re: Why very small repository has 2.7M size","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2008-01-19T09:48:01Z","receivedAt":"2008-01-19T09:48:01Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"Of course with short history\n\n~/test/bar$ ll -ah && git gc\ntotal 20K\ndrwxr-xr-x 3 yinping yinping 4.0K 2008-01-19 17:44 .\ndrwxr-xr-x 8 yinping yinping 4.0K 2008-01-19 17:36 ..\ndrwxr-xr-x 8 yinping yinping 4.0K 2008-01-19 17:44 .git\n-rw-r--r-- 1 yinping yinping   26 2008-01-19 17:33 .gitignore\n-rwxr-xr-x 1 yinping yinping  131 2008-01-19 17:44 Makefile.common\nCounting objects: 87, done.\nCompressing objects: 100% (78/78), done.\nWriting objects: 100% (87/87), done.\nTotal 87 (delta 8), reused 87 (delta 8)\n\n~/test/bar$ git log --pretty=oneline\n4046b84344038d63b655b56f6e619888dd424e4e Add Makefile.common using commonmake\n8bbd7d4649ac1df1b29414b2ec469f532a77f222 Init empty repository, ignore\n*.o, *.d, *~, *.swp, CVS, .svn\n\n~/test/bar$ du -h . | tail -10\n8.0K    ./.git/objects/info\n2.5M    ./.git/objects/pack\n2.5M    ./.git/objects\n8.0K    ./.git/logs/refs/heads\n20K     ./.git/logs/refs/remotes/origin\n24K     ./.git/logs/refs/remotes\n36K     ./.git/logs/refs\n44K     ./.git/logs\n2.7M    ./.git\n2.7M    .\n\nOn Jan 19, 2008 5:43 PM, Ping Yin <pkufranky@gmail.com> wrote:\n> $ ~/test/bar$ ll -h && git gc\n> total 8.0K\n> -rwxr-xr-x 1 yinping yinping 131 2008-01-19 17:35 Makefile.crawler\n> -rwxr-xr-x 1 yinping yinping 131 2008-01-19 17:37 Makefile.search\n> Counting objects: 87, done.\n> Compressing objects: 100% (78/78), done.\n> Writing objects: 100% (87/87), done.\n> Total 87 (delta 8), reused 87 (delta 8)\n>\n> $ ~/test/bar$ du -h . | tail -10\n> 8.0K    ./.git/objects/info\n> 2.5M    ./.git/objects/pack\n> 2.5M    ./.git/objects\n> 8.0K    ./.git/logs/refs/heads\n> 20K     ./.git/logs/refs/remotes/origin\n> 24K     ./.git/logs/refs/remotes\n> 36K     ./.git/logs/refs\n> 44K     ./.git/logs\n> 2.7M    ./.git\n> 2.7M    .\n>\n> --\n> Ping Yin\n>\n\n\n\n-- \nPing Yin\n"},{"id":"65956","messageId":"4791D7AD.1060106@gmx.ch","threadId":"11673","inReplyTo":"46dff0320801190148y5a00c83m4825f4066547ddc2@mail.gmail.com","subject":"Re: Why very small repository has 2.7M size","fromName":"Jean-Luc Herren","fromEmail":"jlh@gmx.ch","sentAt":"2008-01-19T10:57:49Z","receivedAt":"2008-01-19T10:57:49Z","isPatch":false,"sender":{"key":"jlh@gmx.ch","avatar":null},"body":"Ping Yin wrote:\n> -rw-r--r-- 1 yinping yinping   26 2008-01-19 17:33 .gitignore\n> -rwxr-xr-x 1 yinping yinping  131 2008-01-19 17:44 Makefile.common\n> [...]\n> Counting objects: 87, done.\n> [...]\n> 4046b84344038d63b655b56f6e619888dd424e4e Add Makefile.common using commonmake\n> 8bbd7d4649ac1df1b29414b2ec469f532a77f222 Init empty repository, ignore\n> *.o, *.d, *~, *.swp, CVS, .svn\n\nYou sure have a lot of objects for only having two commits and two\nfiles.  Maybe some of the objects are loose ones?  Try running\n'git gc --prune' to see if that removes them.  But be aware that\nthis deletes them all, you might want to check first if the loose\nobjects are something you wanted to keep (with 'git fsck' and 'git\nshow').\n\njlh\n"},{"id":"65963","messageId":"46dff0320801190559qbd9c846v56ece0111554d94b@mail.gmail.com","threadId":"11673","inReplyTo":"4791D7AD.1060106@gmx.ch","subject":"Re: Why very small repository has 2.7M size","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2008-01-19T13:59:58Z","receivedAt":"2008-01-19T13:59:58Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"On Jan 19, 2008 6:57 PM, Jean-Luc Herren <jlh@gmx.ch> wrote:\n> Ping Yin wrote:\n> > -rw-r--r-- 1 yinping yinping   26 2008-01-19 17:33 .gitignore\n> > -rwxr-xr-x 1 yinping yinping  131 2008-01-19 17:44 Makefile.common\n> > [...]\n> > Counting objects: 87, done.\n> > [...]\n> > 4046b84344038d63b655b56f6e619888dd424e4e Add Makefile.common using commonmake\n> > 8bbd7d4649ac1df1b29414b2ec469f532a77f222 Init empty repository, ignore\n> > *.o, *.d, *~, *.swp, CVS, .svn\n>\n> You sure have a lot of objects for only having two commits and two\n> files.  Maybe some of the objects are loose ones?  Try running\n> 'git gc --prune' to see if that removes them.  But be aware that\n> this deletes them all, you might want to check first if the loose\n> objects are something you wanted to keep (with 'git fsck' and 'git\n> show').\n>\nOh, sorry, my fault.\n$ git branch -r\n\n  origin/HEAD\n  origin/backup\n  origin/backup1\n  origin/backup2\n  origin/master\n> jlh\n>\n\n\n\n-- \nPing Yin\n"}]}