git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: jean-christophe manciotNext: jean-christophe manciot
Message 2 of 5 in “fatal: bad revision 'git rm -r --ignore-unmatch -- folder'”
  1. jean-christophe manciotJan 17, 2017
  2. Jeff KingJan 17, 2017
  3. jean-christophe manciotJan 19, 2017
  4. jean-christophe manciotJan 19, 2017
  5. jean-christophe manciotJan 20, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.