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

Re: "git rm" could be safer and have a better help msg

From
Tom Browder <tom.browder@gmail.com>
Date
Jul 10, 2020, 16:31 UTC
Message-ID
<CAFMGiz_5Jop2nVXJuMOR7NT9gKEygueic1m5-yw8BrkDgZ-O3w@mail.gmail.com>
In-Reply-To
<874kqf1n65.fsf@igel.home>
On Fri, Jul 10, 2020 at 9:04 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
Show 6 quoted lines
> On Jul 10 2020, Tom Browder wrote:
> > If the existing file has been modified, with 'rm'  the '--cached'
> > option doesn't remove it from Git
> > unless one uses the '-f' option with it.
>
> It doesn't?  Worksforme.

Thanks, Andreas, that does indeed work. I must have done something wrong, so I'll pay closer attention to what I'm doing.

Best regards,
-Tom
Previous: Andreas SchwabNext: Aaron Schrab
Message 5 of 6 in “"git rm" could be safer and have a better help msg”
  1. Tom BrowderJul 10, 2020
  2. Andreas SchwabJul 10, 2020
  3. Tom BrowderJul 10, 2020
  4. Andreas SchwabJul 10, 2020
  5. Tom BrowderJul 10, 2020
  6. Aaron SchrabJul 10, 2020

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.