git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
DDigitalPig <digitalpiglee@gmail.com>
Date
May 7, 2008, 02:44 UTC
Message-ID
<873aoux284.fsf@gmail.com>
Hi!

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!

Zhenqing
-- 
DigitalPig
E-mail: digitalpiglee AT gmail DOT com
ALL WE SEEN IS ILLUSION.

*Fudan University Macromoleculer Science Forum*
http://fudanmacro.com
Next: Avery Pennarun
Message 1 of 2 in “What is the difference between git-gc, git-repack and git-prune?”
  1. DigitalPigMay 7, 2008
  2. Avery PennarunMay 7, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.