Remove a file in previous commit/changeset
A few revisions ago I committed a piece of work in which I accid开发者_开发技巧entally included a 300mb .flv file (don't ask...).
Is there a way I can edit that changeset to not include the aforementioned file?
UPDATE:
I think I can use the MQ extension and follow these instructions (chapter 6). However, when I run: hg qimport -r 11:tip
, I receive the error: abort: out of memory
.
Use hg convert
with --filemap
switch. Do note that IDs will change on modified changesets and their children. If you've already pushed it to a remote location, you need to use strip/convert on that repo as well, before pushing again.
精彩评论