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

fatal: bad revision 'git rm -r --ignore-unmatch -- folder'

From
JMjean-christophe manciot <actionmystique@gmail.com>
Date
Jan 17, 2017, 15:30 UTC
Message-ID
<CAKcFC3aqjLNUNKPDZ08rO_SBkY84uvHBerCxnSchAe8rH0dnMg@mail.gmail.com>
Hi there,

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/'

git does not find the folder although it's there:

git-Games# ll Ubuntu/16.04/ total 150316 drwxr-x--- 2 actionmystique actionmystique 4096 Nov 19 13:40 ./ drwxr-x--- 4 actionmystique actionmystique 4096 Oct 30 14:02 ../ -rwxr-x--- 1 actionmystique actionmystique 2190394 May 9 2016 residualvm_0.3.0~git-1_amd64.deb* ... -rw-r--r-- 1 actionmystique actionmystique 67382492 Oct 13 09:15 scummvm-dbgsym_1.9.0_amd64.deb

What is going on?
-- 
Jean-Christophe
Next: Jeff King
Message 1 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.