Top "Git-gc" questions

The `git gc` function is used to perform housekeeping in a Git repository, run automatically by certain other Git operations, or manually.

How often should you use git-gc?

How often should you use git-gc? The manual page simply says: Users are encouraged to run this task on a …

git git-gc
How to handle git gc fatal: bad object refs/remotes/origin/HEAD error?

I randomly hit this today while trying to run Git garbage collect: $ git gc fatal: bad object refs/remotes/origin/…

git git-remote git-fetch git-gc
How can I trigger garbage collection on a Git remote repository?

As we know, we can periodically run git gc to pack objects under .git/objects. In the case of a …

git repository git-gc
How to skip "Loose Object" popup when running 'git gui'

When I run 'git gui' I get a popup that says This repository currently has approximately 1500 loose objects. It then …

git garbage-collection rebase git-gui git-gc
Is there a way to limit the amount of memory that "git gc" uses?

I'm hosting a git repo on a shared host. My repo necessarily has a couple of very large files in …

git memory dreamhost git-gc
Do I ever need to run git gc on a bare repo?

man git-gc doesn't have an obvious answer in it, and I haven't had any luck with Google either (although I …

git git-gc
Git gc using excessive memory, unable to complete

Final update and fix: The solution here turned out to be a combination of two things: using Windows Git rather …

git git-svn git-gc
Forcing Remote Repo to Compress (GC) with Git

I'm using Git to version a series of binary files. They compress pretty well, but my central repos do not …

git git-remote git-gc
Stopping a git gc --aggressive, is that a bad thing?

I am running a git gc --aggressive on a very large repo (apx 100 gb). It's been running since two nights …

git git-gc
Failed to run repack in git gc

Tried below command and facing error. C:\project\sys\src>git gc Counting objects: 6342699, done. warning: suboptimal pack - …

git git-branch git-rebase git-extensions git-gc