Re: git clone --bare --origin incompatible?
- From
Andreas Schwab <schwab@linux-m68k.org>
- Date
- Oct 23, 2016, 12:29 UTC
- Message-ID
- <87y41f8czg.fsf@linux-m68k.org>
- In-Reply-To
- <20161023110338.GA1486@isis.sigpipe.cz>
On Okt 23 2016, Roman Neuhauser <neuhauser@sigpipe.cz> wrote:
> what is the reason clone --bare prohibits --origin? > > % git clone --bare -o fubar anything anywhere > fatal: --bare and --origin fubar options are incompatible.
Since a bare clone maps remote branches directly to local branches, without any remote-tracking branches, --origin doesn't make sense.
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."