How to remove a versioned file retroactively in git/TortoiseGit? [duplicate]
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 th开发者_JS百科ey would keep taking up space.
I'm using TortoiseGit with Unfuddle.
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.
精彩评论