Re: fatal: bad revision 'git rm -r --ignore-unmatch -- folder'
- From
Jeff King <peff@peff.net>
- Date
- Jan 17, 2017, 15:38 UTC
- Message-ID
- <20170117153807.g4dlv5glfnvc3zc6@sigill.intra.peff.net>
- In-Reply-To
- <CAKcFC3aqjLNUNKPDZ08rO_SBkY84uvHBerCxnSchAe8rH0dnMg@mail.gmail.com>
On Tue, Jan 17, 2017 at 04:30:48PM +0100, jean-christophe manciot wrote:
Show 6 quoted lines
> I'm trying to purge a complete folder and its files from the > repository history with: > > git-Games# git filter-branch 'git rm -r --ignore-unmatch -- > Ubuntu/16.04/' --tag-name-filter cat -- --all HEAD > fatal: bad revision 'git rm -r --ignore-unmatch -- Ubuntu/16.04/'
Did you forget "--tree-filter" or "--index-filter" before the "git rm" parameter? Without an option it will be interpreted as a refname, which it obviously isn't.
-Peff