From: Karsten Blees <karsten.blees@gmail.com>
To: kusmabite@gmail.com, Daniel Corbe <corbe@corbe.net>
Cc: GIT Mailing-list <git@vger.kernel.org>
Subject: Re: Location of git config on Windows
Date: Mon, 18 Aug 2014 01:08:40 +0200 [thread overview]
Message-ID: <53F135F8.60508@gmail.com> (raw)
In-Reply-To: <CABPQNSZDizccths0b_RZ5FXYYq=+4_2N35DMj9h4Rha_2voekw@mail.gmail.com>
Am 18.08.2014 00:01, schrieb Erik Faye-Lund:
> On Sun, Aug 17, 2014 at 10:18 PM, Daniel Corbe <corbe@corbe.net> wrote:
>>
>> I installed git on my Windows machine while it was connected to my
>> corporate network. It picked up on that fact and used a mapped drive to
>> store its configuration file.
>>
>> As a result, I cannot currently use git when disconnected from my
>> network. It throws the following error message: fatal: unable to access
>> 'Z:\/.config/git/config': Invalid argument
>>
>> Obviously this value is stored in the registry somewhere because I made
>> an attempt to uninstall and reinstall git with the same results.
>>
>> Can someone give me some guidance here?
>
> Git looks for the per-user configuration in $HOME/.gitconfig, and if
> $HOME is not set, it falls back to $HOMEDIR/$HOMEPATH/.gitconfig. My
> guess would be some of these environment variables are incorrectly set
> on your system.
To be precise, git checks if %HOME% is set _and_ the directory exists before
falling back to %HOMEDRIVE%%HOMEPATH%.
If %HOMEDRIVE%%HOMEPATH% isn't set or the directory doesn't exist either, it
falls back to %USERPROFILE%, which is always local (C:/Users/<yourname>), even
if disconnected from the network (at least that's how its supposed to be).
next prev parent reply other threads:[~2014-08-17 23:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-17 20:18 Location of git config on Windows Daniel Corbe
2014-08-17 21:40 ` Jason Pyeron
2014-08-17 22:01 ` Erik Faye-Lund
2014-08-17 23:08 ` Karsten Blees [this message]
2014-08-18 15:14 ` Daniel Corbe
2014-08-18 15:25 ` Erik Faye-Lund
2014-08-18 15:40 ` Daniel Corbe
2014-08-18 15:47 ` Erik Faye-Lund
2014-08-18 15:51 ` Erik Faye-Lund
2014-08-18 17:05 ` Daniel Corbe
2014-08-18 18:17 ` Erik Faye-Lund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53F135F8.60508@gmail.com \
--to=karsten.blees@gmail.com \
--cc=corbe@corbe.net \
--cc=git@vger.kernel.org \
--cc=kusmabite@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).