This is a follow-up question from a previous question on Stackoverflow.
I've tried to remove large files from my local git history, but the tool (BFG Repo-Cleaner) suggested in this question states that my private GitHub repository is not a valid git repository.
The command I use is:
java -jar bfg-1.12.12.jar --strip-blobs-bigger-than 99M https://github.com/name/repo.git
Which eventually results in:
Aborting : https://github.com/name/repo.git is not a valid Git repository.
I couldn't find a solution. Is the tool not compatible with private or https GitHub repositories?
How would I use the alternative tool git-filter-branch
, to remove all files larger than 99MB from my local git history?
The project is about 6MB large and only about 50 commits were made up to now and no other people are working on it.