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

error: invalid key with file url insteadOf

From
BIBasin Ilya <basinilya@gmail.com>
Date
Jul 20, 2018, 21:27 UTC
Message-ID
<7ac8e749-0636-cac4-35c7-1226f340e72f@gmail.com>
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
Manually editing ~/.gitconfig works fine:
    [url "file:///cygdrive/c"]
            insteadOf = file:///C:
    il@MAR2 /cygdrive/c/progs/maven/maven-scm/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe
    $ LANG=C cmd.exe /X /C "git clone file:///C:/progs/maven/maven-scm/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/target/git_copy checkin-nobranch"
    Cloning into 'checkin-nobranch'...
    warning: You appear to have cloned an empty repository.
Next: Junio C Hamano
Message 1 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.