An open API service indexing awesome lists of open source software.

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.

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
```