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

Re: Unable to remove a file

From
RMrobert mena <robert.mena@gmail.com>
Date
Oct 3, 2011, 20:57 UTC
Message-ID
<CAAZ43xa43YjO7Vqw87cYnXhJWvsZT_ocPpLuJ81jCPc8KKRczw@mail.gmail.com>
In-Reply-To
<m262k6jc2c.fsf@igel.home>
Thanks.
It accepted the command but rejected my push.
git filter-branch --index-filter 'git rm -q --ignore-unmatch --cached
scripts/\\' HEAD
Rewrite 5ac83187fa298add60cf81fd1d54b194da7ae783 (57/57)
Ref 'refs/heads/master' was rewritten
git push
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'git@myserver:repository'
Should I do anything special?
On Mon, Oct 3, 2011 at 12:04 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
Show 15 quoted lines
> robert mena <robert.mena@gmail.com> writes:
>
>> I found the command filter but it is not working.
>>
>> git filter-branch --index-filter 'git rm --cached scripts/\\' HEAD
>
> $ git filter-branch --index-filter 'git rm -q --ignore-unmatch --cached scripts/\\' HEAD
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>
Previous: Andreas SchwabNext: Zbigniew Jędrzejewski-Szmek
Message 3 of 8 in “Unable to remove a file”
  1. robert menaOct 3, 2011
  2. Andreas SchwabOct 3, 2011
  3. robert menaOct 3, 2011
  4. Zbigniew Jędrzejewski-SzmekOct 4, 2011
  5. John SzakmeisterOct 4, 2011
  6. robert menaOct 4, 2011
  7. Zbigniew Jędrzejewski-SzmekOct 4, 2011
  8. Andreas SchwabOct 4, 2011

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.