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

When I do git config --global http.proxy

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

Why this?


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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.