/ git

The atom bomb of git repositories

The videoscribe repository was getting out of hand and before I can actually create any new branches I’ve been trying to remove a bunch of files to bring the repository back under control in terms of file size.

It’s been proving pretty tough but I’ve done a similar run on Parafraze and I think I’ve cracked it.

git filter-branch –index-filter ‘git rm -r –cached –ignore-unmatch <file/dir>’ HEAD –tag-name-filter cat — –all

Will get rid of the file and re-write the history. Then add the file / file type to the .gitignore file to ensure you don’t track it again.

Then simply

git push –all –tags –force