Installing git on Windows 10, unable to access .gitconfig
<p>I'm new to git, and i'm trying to install git 2.9.2 from <a href="https://git-scm.com/download/win" rel="nofollow">here</a>. In the installation (the last of the many) i chose to run it from bash only. I now try to set it up, and the first thing i try is to set my name with</p>

<pre><code>$ git config --global user.name "My Name"
</code></pre>

<p>But after i execute this, i get:</p>

<pre><code>fatal: unable to access 'C:\Program Files\Git\ C:\Windows\system32\config\systemprofile/.config/git/config': Invalid argument
</code></pre>

<p>Let's say that i now want to clone a repository. I insert something like:</p>

<pre><code>git clone https://username@bitbucket.org/team/repo.git
</code></pre>

<p>But i get:</p>

<pre><code>fatal: unable to access 'D:\TestRepo\ C:\Users\username/.config/git/config': Invalid argument
</code></pre>

<p>I thought that the .gitconfig file should be inside the <code>C:/Users/username</code> directory, but it tries to locate <code>C:\Users\username/.config/git/config</code>, which seems a little weird. My HOME variable is %USERPROFILE%, as it should. Any help appreciated.</p>