有没有办法清理混帐? [英] Is there a way to clean up git?
问题描述
commit / push
。有没有办法清理我的git文件夹?我不确定你想要什么。首先,当然每次你提交/推送的目录会变得更大一些,因为它必须存储每个额外的提交。
然而,可能你需要 另一个可能相关的命令是 Seems like my project is getting bigger and bigger with every git I'm not sure what you want. First of all, of course each time you commit/push the directory is going to get a little larger, since it has to store each of those additional commits. However, probably you want Another possibly relevant command is 这篇关于有没有办法清理混帐?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! git gc
这将清理不必要的文件并优化本地存储库(
git clean
从树中删除未跟踪的文件(手册页 )。commit/push
. Is there a way to clean up my git folder?git gc
which will "cleanup unnecessary files and optimize the local repository" (manual page).git clean
which will delete untracked files from your tree (manual page).