{"action":"created","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/643","repository_url":"https://api.github.com/repos/git-for-windows/git","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/643/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/643/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/643/events","html_url":"https://github.com/git-for-windows/git/issues/643","id":130688948,"number":643,"title":"XDG config confusion","user":{"login":"csware","id":428133,"avatar_url":"https://avatars.githubusercontent.com/u/428133?v=3","gravatar_id":"","url":"https://api.github.com/users/csware","html_url":"https://github.com/csware","followers_url":"https://api.github.com/users/csware/followers","following_url":"https://api.github.com/users/csware/following{/other_user}","gists_url":"https://api.github.com/users/csware/gists{/gist_id}","starred_url":"https://api.github.com/users/csware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csware/subscriptions","organizations_url":"https://api.github.com/users/csware/orgs","repos_url":"https://api.github.com/users/csware/repos","events_url":"https://api.github.com/users/csware/events{/privacy}","received_events_url":"https://api.github.com/users/csware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-02T13:52:36Z","updated_at":"2016-02-23T09:43:33Z","closed_at":null,"body":"Create a .config directory in the user profile folder and then execute `git config --global user.name test`, see that a \".config/.git/config\" is created. According to the git documentation, the file should be `.config/git/config` (without the dot before git). Also, the  `.config/git/config` file should not be created if it does not exist and .gitconfig exists.\r\n\r\nThe \".config/git/config\" file is also read, but with less priority?!\r\n\r\nSee http://man7.org/linux/man-pages/man1/git-config.1.html."},"comment":{"url":"https://api.github.com/repos/git-for-windows/git/issues/comments/187627005","html_url":"https://github.com/git-for-windows/git/issues/643#issuecomment-187627005","issue_url":"https://api.github.com/repos/git-for-windows/git/issues/643","id":187627005,"user":{"login":"dscho","id":127790,"avatar_url":"https://avatars.githubusercontent.com/u/127790?v=3","gravatar_id":"","url":"https://api.github.com/users/dscho","html_url":"https://github.com/dscho","followers_url":"https://api.github.com/users/dscho/followers","following_url":"https://api.github.com/users/dscho/following{/other_user}","gists_url":"https://api.github.com/users/dscho/gists{/gist_id}","starred_url":"https://api.github.com/users/dscho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dscho/subscriptions","organizations_url":"https://api.github.com/users/dscho/orgs","repos_url":"https://api.github.com/users/dscho/repos","events_url":"https://api.github.com/users/dscho/events{/privacy}","received_events_url":"https://api.github.com/users/dscho/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T09:43:33Z","updated_at":"2016-02-23T09:43:33Z","body":"I cannot reproduce this behavior. For me, a fresh `~/.gitconfig` is created and `.config/` is still empty. FWIW tested with Git for Windows 2.7.1(2) on Win7 64-bit."}}