{"thread":{"id":"13405","subject":"What is the difference between git-gc, git-repack and git-prune?","startedAt":"2008-05-07T02:44:11Z","lastAt":"2008-05-07T02:53:22Z","messageCount":2,"participants":["DigitalPig","Avery Pennarun"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"76243","messageId":"873aoux284.fsf@gmail.com","threadId":"13405","inReplyTo":null,"subject":"What is the difference between git-gc, git-repack and git-prune?","fromName":"DigitalPig","fromEmail":"digitalpiglee@gmail.com","sentAt":"2008-05-07T02:44:11Z","receivedAt":"2008-05-07T02:44:11Z","isPatch":false,"sender":{"key":"digitalpiglee@gmail.com","avatar":null},"body":"Hi!\n\nFor git-prune, according to the manual, it will delete all the dangling\nobjects. So it is easy to understand. However, in the git-gc manpage,\nthere is another option named \"--prune\". Does that make git-gc do the\nsame thing as git-prune?\n\nAnd manpage of git-gc says it cleans unnecessary files and compresses\nthe objects, and git-repack also compresses the objects too. Are there\nany difference between these two operations? Or do I need to invoke\ngit-repack after running git-gc? Thanks!\n\n\nZhenqing\n\n-- \nDigitalPig\nE-mail: digitalpiglee AT gmail DOT com\nALL WE SEEN IS ILLUSION.\n\n*Fudan University Macromoleculer Science Forum*\nhttp://fudanmacro.com\n"},{"id":"76244","messageId":"32541b130805061953s7ef38990r44d9966af0c8d9ea@mail.gmail.com","threadId":"13405","inReplyTo":"873aoux284.fsf@gmail.com","subject":"Re: What is the difference between git-gc, git-repack and git-prune?","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2008-05-07T02:53:22Z","receivedAt":"2008-05-07T02:53:22Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On 5/6/08, DigitalPig <digitalpiglee@gmail.com> wrote:\n>  For git-prune, according to the manual, it will delete all the dangling\n>  objects. So it is easy to understand. However, in the git-gc manpage,\n>  there is another option named \"--prune\". Does that make git-gc do the\n>  same thing as git-prune?\n>\n>  And manpage of git-gc says it cleans unnecessary files and compresses\n>  the objects, and git-repack also compresses the objects too. Are there\n>  any difference between these two operations? Or do I need to invoke\n>  git-repack after running git-gc? Thanks!\n\ngit-gc is a fancy wrapper that automatically calls git-repack and\ngit-prune for you with the most commonly used options, so you usually\ndon't need to run the others yourself.\n\nAvery\n"}]}