最佳答案
我检查了sources ,这就是它的作用:
${NS}::button $w.buttons.gc -text [mc "Compress Database"] \
34 -default normal \
35 -command "destroy $w;do_gc"
// < snip >
proc do_gc {} {
72 set w [console::new {gc} [mc "Compressing the object database"]]
73 console::chain $w {
74 {exec git pack-refs --prune}
75 {exec git reflog expire --all}
76 {exec git repack -a -d -l}
77 {exec git rerere gc}
所以有趣的部分(git 命令)是:
git pack-refs --prune
git reflog expire --all
git repack -a -d -l
git rerere gc
关于git - 在 GUI ($git gui) 中单击存储库/压缩数据库时执行的 git 命令到底是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70412724/