How to remove a versioned file retroactively in git/TortoiseGit?

3.2k Views Asked by At

Possible Duplicate:
git - remove file from the repository

I just realised that my binaries have been version-controlled since I started my git repository, which has resulted in a .git of 10MB -- way too large for 40 revisions of a small project.

How can I retroactively remove these files from the repository? A simple git removal would not remove their history, so they would keep taking up space.

I'm using TortoiseGit with Unfuddle.

1

There are 1 best solutions below

0
On

This calls for git filter-branch. You will be able to get rid of the files you never intended on tracking.

Take a look here for more information:

http://git-scm.com/docs/git-filter-branch

Hope this helps.