Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不正常的仓库空间 #5

Open
aimerneige opened this issue Mar 19, 2022 · 1 comment
Open

不正常的仓库空间 #5

aimerneige opened this issue Mar 19, 2022 · 1 comment

Comments

@aimerneige
Copy link

也没多少代码吧,怎么占了 41 M 这么大。。。

$ find -type d -exec du -sh {} \;
41M	.
12K	./gotest
41M	./.git
28K	./.git/refs
12K	./.git/refs/remotes
8.0K	./.git/refs/remotes/origin
8.0K	./.git/refs/heads
4.0K	./.git/refs/tags
8.0K	./.git/info
4.0K	./.git/branches
32K	./.git/logs
24K	./.git/logs/refs
12K	./.git/logs/refs/remotes
8.0K	./.git/logs/refs/remotes/origin
8.0K	./.git/logs/refs/heads
64K	./.git/hooks
41M	./.git/objects
4.0K	./.git/objects/info
41M	./.git/objects/pack
60K	./assets
@aimerneige
Copy link
Author

删除的文件依然会占用存储空间,可以尝试清除无用文件

相关文档 https://git-scm.com/docs/git-gc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant