I am using Git on Windows 10, along with Netbeans 8.1, also testing Smartgit. Once the repository was created, I have accidentally committed binaries and other-than-source files and the repository size whopped to 680MB! Although I have created a .gitignore file and manually instructed NB what folders to be ignored, I can't find a way to recover the wasted space in the repository.
I have read those resources, however I have no bash terminal on Windows and none of the suggestions seem to help:
- Reduce git repository size
- How to reduce size of git repository after accidental push of large file size?
- how to reduce git repository size
One important aspect is that the binaries I want to exclude are still in the working tree (cannot remove them for functional reasons) however they should be ignored by Git and removed from the repo.
What can I try?