0

One of my team member had committed 2.3 GB files in the git repo hosted on bitbucket. we weren't able to push new commit to remote, so I asked him to delete the file and now index size is exceeded over 5GB.

This because git is tracking the deletion of that binary files also

I managed to clear 400MB using bfg

I want git to completely forget about those files located in app/TFDeeper folder

tbhaxor
  • 1,659
  • 2
  • 13
  • 43
  • 1
    Does this answer your question? [How to remove/delete a large file from commit history in Git repository?](https://stackoverflow.com/questions/2100907/how-to-remove-delete-a-large-file-from-commit-history-in-git-repository) – evolutionxbox Jan 19 '21 at 20:47
  • @evolutionxbox I tried the commands, now index size is 6.4GB -,- – tbhaxor Jan 19 '21 at 21:25

1 Answers1

-1

I tried the commands, now index size is 6.4GB

Not with the recommended git filter-repo (that I mentioned here).

Install it first (python3 -m pip install --user git-filter-repo)

Then, for example:

git filter-repo --strip-blobs-bigger-than 10M

Then use a tool like github/git-sizer to check if there is anything else still taking too much space.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • After running this command, It actually deleted all files and index size is reduced to 2GB :3 – tbhaxor Jan 21 '21 at 10:44
  • @tbhaxor Yes, it is the right tool for the job. What does git-sizer return? Any large file left? – VonC Jan 21 '21 at 10:57
  • Now i can't eent cd into that directory. -,-. So let's wait for some more answers – tbhaxor Jan 21 '21 at 15:28
  • @tbhaxor Is it possible to check `git-sizer` in a new local clone of that same repository? – VonC Jan 21 '21 at 15:30