git config --global http.proxy "http://<your proxy>:<port>"
However, it returned me error,
error: could not lock config file H:\/.gitconfig: No such file or
directory error: could not lock config file
To fix it, need to set up the %HOME% environment variable to your user profile path1. echo %userprofile%
2. create a new environment variable as HOME = the user profile directory
And then you can run the config http.proxy command.
No comments:
Post a Comment