git gc --aggressive --prune=all does not remove big file from repository
问题 There are many SO questions regarding "how to remove an accidentally added big file from repo", many of them suggesting using git gc command. However, I find it not working for me and I don't know what's going wrong. Here is what I have done: $ git init Initialized empty Git repository in /home/wzyboy/git/myrepo/.git/ $ echo hello >> README $ git add README $ git commit -a -m 'init commit' [master (root-commit) f21783f] init commit 1 file changed, 1 insertion(+) create mode 100644 README $ du