https://github.com/situ2001/how-to-configure-proxy
Free yourself from endless Google search on proxy configuration for dev tools.
https://github.com/situ2001/how-to-configure-proxy
Last synced: 7 months ago
JSON representation
Free yourself from endless Google search on proxy configuration for dev tools.
- Host: GitHub
- URL: https://github.com/situ2001/how-to-configure-proxy
- Owner: situ2001
- License: cc0-1.0
- Created: 2022-11-02T07:01:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T02:23:45.000Z (almost 3 years ago)
- Last Synced: 2025-01-07T22:19:19.662Z (9 months ago)
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# How to configure proxy
The goal of this repo is to free yourself from endless search on Google for guides and docs that tell you how to configure proxy for dev tools like github, npm and so on.
PRs and issues are welcomed.
## My environment
App clash opens port 7890 for http and socks proxy. This may be a common proxy env in mainland China.
## git
Basic form. Just globally configured once.
```shell
git config --global http.proxy http://: # without username and password
git config --global http.proxy http://@: # with username and password
```If you are using Clash.
```shell
git config --global http.proxy http://127.0.0.1:7890
```## npm
```shell
npm --proxy http://@: i
```If you are using Clash.
```shell
npm --proxy http://127.0.0.1:7890 i -g yarn
```