Re: "git rm" could be safer and have a better help msg
- From
Tom Browder <tom.browder@gmail.com>
- Date
- Jul 10, 2020, 13:14 UTC
- Message-ID
- <CAFMGiz8+pjskPpPqVgQUevKdWgxPvCKBcmx-07E2yizDqhm9mg@mail.gmail.com>
- In-Reply-To
- <878sfr1rdm.fsf@igel.home>
On Fri, Jul 10, 2020 at 7:33 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
> > $ git rm -f --cached myfile # many thanks to @jast on IRC #git > Why do you need -f?
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.
-Tom