格式: git gc [选项] <path> 选项 git commit -a 提交所有改动的文件(a -- all) NOTE: XX 举例 压缩历史消息 git gc null 转载于:https://www.cnblogs.com/gelu/p/6911430.html