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

Re: error: invalid key with file url insteadOf

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 20, 2018, 21:37 UTC
Message-ID
<xmqqk1ppa8rc.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<7ac8e749-0636-cac4-35c7-1226f340e72f@gmail.com>
Basin Ilya <basinilya@gmail.com> writes:
Show 11 quoted lines
> Hi.
>
> I'm trying to make the Cygwin Git understand Mingw-style repo urls:
>
>     git config --global \
>       file:///cygdrive/c.insteadOf \
>       file:///C:
>
> But this fails with:
>
>     error: invalid key: file:///cygdrive/c.insteadOf
Understandable.
> Manually editing ~/.gitconfig works fine:
>
>     [url "file:///cygdrive/c"]
>             insteadOf = file:///C:

How about spelling what you want to happen on the command line version the same way as your "manual" version? I.e.

	git config --global \
		url.file:///cygdrive/c.insteadOf \
		file:///C:
notice the lack of "url." in your version.
Previous: Basin Ilya
Message 2 of 2 in “error: invalid key with file url insteadOf”
  1. Basin IlyaJul 20, 2018
  2. Junio C HamanoJul 20, 2018

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.