Re: Why won't git checkout a branch?
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Jul 1, 2020, 10:20 UTC
- Message-ID
- <87lfk3czae.fsf@igel.home>
- In-Reply-To
- <CAH8yC8kxY5mV0p-98W0uDN7PLxmNR4LkNcz9vbKsq21aTd-qQg@mail.gmail.com>
On Jul 01 2020, Jeffrey Walton wrote:
Show 16 quoted lines
> On Wed, Jul 1, 2020 at 5:50 AM Andreas Schwab <schwab@linux-m68k.org> wrote: >> >> On Jul 01 2020, Jeffrey Walton wrote: >> >> > $ git checkout m4 >> >> Try a newer git version: >> >> $ git checkout m4 >> fatal: 'm4' could be both a local file and a tracking branch. >> Please use -- (and optionally --no-guess) to disambiguate > > Ack, thanks. > > This does not look normal, either. I don't want to create a new > branch. I want to work on the existing branch.
To disambiguate, use `git checkout m4 --' if you want the branch, and `git checkout -- m4' if you want the local file.
Andreas.
-- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."