... | ... | @@ -7,9 +7,15 @@ git config --global http.proxy http://<username>:<password>@<proxy-server-url>:< |
|
|
|
|
|
For just the current project, omit `--global`.
|
|
|
|
|
|
To remove the settings replace the url with `--unset` or modify the .gitconfig file (for project).
|
|
|
|
|
|
## NPM
|
|
|
|
|
|
```bash
|
|
|
npm config set proxy http://<username>:<password>@<proxy-server-url>:<port>
|
|
|
npm config set https-proxy http://<username>:<password>@<proxy-server-url>:<port>
|
|
|
```
|
|
|
|
|
|
To undo the setting, modify your .npmrc config file.
|
|
|
|
|
|
For Ubuntu, npm uses the ca-certificates store so make sure that the proxy's ca certificate is installed. |
|
|
\ No newline at end of file |