hello,
what is the reason clone --bare prohibits --origin?
% git clone --bare -o fubar anything anywhere fatal: --bare and --origin fubar options are incompatible.
-- roman
threads / discuss / 44362
Subject: git clone --bare --origin incompatible?
hello,
what is the reason clone --bare prohibits --origin?
% git clone --bare -o fubar anything anywhere fatal: --bare and --origin fubar options are incompatible.
-- roman
Re: git clone --bare --origin incompatible?
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."
Re: git clone --bare --origin incompatible?
# schwab@linux-m68k.org / 2016-10-23 14:29:55 +0200:
> 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.
is it going to break something though? i can still go and rename the remote in the bare repo's config file afterwards.
-- roman