开发者

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

This question already has an answer here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜