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

Re: rebase, file permissions and removed file

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Oct 27, 2008, 14:38 UTC
Message-ID
<4905D276.9020308@viscovery.net>
In-Reply-To
<a2633edd0810270702x416bb659ke183b0cc6266071@mail.gmail.com>
Pascal Obry schrieb:
Show 18 quoted lines
> # At this point there is a conflict as expected
> # file1 has been removed on master, and file1 had its permissions changed
> # on fixperms branch.
> #
> # What I find confusing is that:
> #    $ git diff
> # and
> #    $ git diff --cached
> #
> # are reporting nothing.
> #
> # Ok, file1 has been removed, let's then remove it as it is right:
> #
> #   $ git rm file1
> #   fatal: pathspec 'file1' did not match any files
> #
> # Ok, so what's the proper way to fix that! What should I do to be able to
> # continue the rebase:
Since you don't have any content to lose, you can always just
 $ touch file1
 $ git add file1
 $ git rm file1
-- Hannes
Previous: Pascal ObryNext: Pascal Obry
Message 2 of 7 in “rebase, file permissions and removed file”
  1. Pascal ObryOct 27, 2008
  2. Johannes SixtOct 27, 2008
  3. Pascal ObryOct 27, 2008
  4. Johannes SixtOct 27, 2008
  5. Pascal ObryOct 27, 2008
  6. Samuel TardieuOct 27, 2008
  7. Pascal ObryOct 27, 2008

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.