git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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."
Previous: Roman NeuhauserNext: Roman Neuhauser
Message 2 of 3 in “git clone --bare --origin incompatible?”
  1. Roman NeuhauserOct 23, 2016
  2. Andreas SchwabOct 23, 2016
  3. Roman NeuhauserOct 23, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.