Не удается найти .gitconfig в каталоге пользователя

2944
HelloWorld

Я открыл CMD и зашел в мою папку пользователя. Внутри находится файл .gitconfig.

Когда я делаю git config --global http.proxy http://127.0.0.1:3128

он говорит, что файл / папка .gitconfig не найден!

Почему это?

1

1 ответ на вопрос

1
Zaheylu

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