运行git gc没有选项与--auto选项有什么区别?

Haz*_*zok 1 git garbage-collection

我正在查看手册页以查找没有选项传递时无法立即找到任何内容的git gc的默认行为.我最初假设使用没有选项的git gc时的默认值与git gc --auto相同.

git gc和git gc --auto一样吗?如果没有,行为有什么不同?

stc*_*ang 6

git gc没有--auto总是清理.git gc --auto检查是否有必要先进行清理.

不要git gc连续两次,它会重复工作的第二次.但是做了git gc --auto之后git gc它什么都不做.