List of all commands that cause git gc –auto

builtin/merge.c:            const char *argv_gc_auto[] = { "gc", "--auto", NULL };
builtin/receive-pack.c:     "gc", "--auto", "--quiet", NULL,
git-am.sh:                  git gc --auto
git-rebase--interactive.sh: git gc --auto &&
git-svn.perl:               command_noisy('gc', '--auto');

From git grep -- --auto on git.git, those results looked interesting. The notable one is builtin/merge.c meaning that the ever so common git pull should trigger a git gc --auto.

Additionally, unless your ‘non-technical’ staff is doing rather ‘advanced’ stuff (at which point they wouldn’t be ‘non-technical’ anymore), I don’t see why they would ever need to run git gc manually instead of just letting git gc --auto handle everything.

Leave a Comment