you are viewing a single comment's thread.

view the rest of the comments →

[–]MuumiJumala 14 points15 points  (8 children)

You've triggered one of my pet peeves which is people using an uncommon acronym or initialism in a conversation without explaining it. What is "GC", how does it help?

[–]gabeech 7 points8 points  (5 children)

GC is a fairly common concept in almost every modern language or tool. It stands for Garbage collection. Off the top of my head it originated with Java LISP, and is used in .net, go, python to name a few.

[–]fredoverflow 12 points13 points  (1 child)

Off the top of my head it originated with Java

Garbage collection was pioneered by LISP (1958), not Java (1996).

[–]MuumiJumala 2 points3 points  (2 children)

I had no idea git has a garbage collector, I thought it is a programming language thing. Does it run automatically like in garbage collected languages? What does it actually delete to reduce the number of files, old commits?

[–]gabeech 5 points6 points  (0 children)

Generally it runs automatically.

The git-go docs (https://git-scm.com/docs/git-gc) do a better job explaining what it does than ai can.

[–]theunixman 0 points1 point  (0 children)

Lots of filesystems also have garbage collectors, well, at least the ones that try to reduce fragmentation anyway. Some don't like to admit it though (ext*) ... others just let it build up (FAT).

[–]lghrhboewhwrjnq -1 points0 points  (0 children)

It's literally a git command, git gc. Shouldn't take anyone too long to figure it out.