Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: What is the difference between git-gc, git-repack and git-prune?

From: Avery Pennarun <hidden>
Date: 2016-06-15 22:44:34

On 5/6/08, DigitalPig [off-list ref] wrote:
 For git-prune, according to the manual, it will delete all the dangling
 objects. So it is easy to understand. However, in the git-gc manpage,
 there is another option named "--prune". Does that make git-gc do the
 same thing as git-prune?

 And manpage of git-gc says it cleans unnecessary files and compresses
 the objects, and git-repack also compresses the objects too. Are there
 any difference between these two operations? Or do I need to invoke
 git-repack after running git-gc? Thanks!
git-gc is a fancy wrapper that automatically calls git-repack and
git-prune for you with the most commonly used options, so you usually
don't need to run the others yourself.

Avery
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help