Search code examples
gitvisual-studiogithubversion-controlvisual-studio-2017

Which .gitconfig file does Visual Studio use?


In Visual Studio Enterprise 2017 15.2 (26430.15) Release, when I push a simple test edit of my cloned public Github repository, it fails; with an error message concerning an AggregateException, and an inability to spawn "askpass". Other SO posts relating to that issue don't work for me.

I'd like to try adding our http/https proxy settings manually to the .gitconfig file used by VS2017, but I can't find it. I have one already under cygwin, but I'm not sure if using that is a good idea - nor how to ask VS2017 to use it. (I also have Git Bash etc. already installed.)


Solution

  • VS2017 has no Visual Studio specific .gitconfig.

    You can alter the standard global git config file, or the local one for the repository in question.

    To edit the global one:

    git config --global --edit
    

    To edit the repository local one

    git config --edit