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.
Signature · 1 line
roman
Quoted 4 lines · Roman Neuhauser
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.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
# [email protected] / 2016-10-23 14:29:55 +0200:
Quoted 9 lines · Roman Neuhauser
Quoted 5 lines
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.
Signature · 1 line
roman