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

Re: git clone git clone some://url

From
Christoph Berg <myon@debian.org>
Date
Nov 20, 2019, 06:41 UTC
Message-ID
<20191120064157.GA22081@msg.df7cb.de>
In-Reply-To
<xmqqimnfcikf.fsf@gitster-ct.c.googlers.com>
Re: Junio C Hamano 2019-11-20 <xmqqimnfcikf.fsf@gitster-ct.c.googlers.com>
Show 19 quoted lines
> Christoph Berg <myon@debian.org> writes:
> 
> > On some git hosting sites [*], if you copy the repository URL, you'll
> > actually get "git clone some://url" in the cut buffer. When you then
> > proceed to do "git clone <paste>" in the next terminal window, the
> > command executed is actually this:
> >
> > $ git clone git clone some://url
> > fatal: Too many arguments.
> 
> Or
> 
>     $ git git clone some://usr
>     $ git git git diff
> 
> ;-)
> 
> I seriously doubt "git" should do anything funky when fed such
> command lines.

"git git git" is obviously silly. The problem is really just about this single issue:

1. go to some website, copy the git url
2. type "git clone" in the terminal
3. paste the url, hit enter
4. be annoyed when you ended up with "git clone git clone url://"
Christoph
Previous: Junio C HamanoNext: Danh Doan
Message 3 of 8 in “git clone git clone some://url”
  1. Christoph BergNov 19, 2019
  2. Junio C HamanoNov 20, 2019
  3. Christoph BergNov 20, 2019
  4. Danh DoanNov 21, 2019
  5. Denton LiuNov 20, 2019
  6. Junio C HamanoNov 22, 2019
  7. Jonathan NiederDec 4, 2019
  8. Christoph BergDec 5, 2019

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.