Re: git clone git clone some://url
- From
Denton Liu <liu.denton@gmail.com>
- Date
- Nov 20, 2019, 18:07 UTC
- Message-ID
- <20191120180709.GA63368@generichostname>
- In-Reply-To
- <xmqqimnfcikf.fsf@gitster-ct.c.googlers.com>
On Wed, Nov 20, 2019 at 12:50:24PM +0900, Junio C Hamano wrote:
Show 14 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
That's why I have `git config alias.git !git` set. It's saved me seconds of my life from having to retype these lines. ;)
Unfortunately, I don't think we can take a similar approach for the `git clone git clone ...` case.
Show 5 quoted lines
> ;-) > > I seriously doubt "git" should do anything funky when fed such > command lines. >