I noticed that my git repo contains some large folders which were unnecessary and therefore used
git rm -r --cached /folders/not_needed_folder/
to untrack them, however when I try to perform git push the process takes a very long time to get completed and writes very big objects on the cloud and it fails most of the time(see please the picture below).
I noticed that my git repo has a very large package with like 10 GB size, does it help/hurt if I remove this package (image below)?
- I tried git -rm -r to untrack the files I don't need.
git gc --aggressive
didn't help.
instead of uploading 3 GB and failing I expected, as usual, that it will upload much smaller amount of data (like 10-20 MB).