Can not find .gitconfig in user directory

6,027

That weird. If your configuration file really doesn't exist, then executing git config --global --list should give you the location is it expected to be. You should check if permissions to that directory are sufficient for git to write to that file...

You can also execute git config --global --edit to edit the file directly.

If you want to change your config file path, you can do so by creating an environment variable called home, and pointing it to your desired location.

See Git Config Documentation for additional information

Share:
6,027

Related videos on Youtube

HelloWorld
Author by

HelloWorld

Updated on September 18, 2022

Comments

  • HelloWorld
    HelloWorld over 1 year

    I opened the CMD and go to my user folder. Inside is the .gitconfig file.

    When I do git config --global http.proxy http://127.0.0.1:3128

    it says that the file/folder .gitconfig is not found!

    Why this?