Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hoochanlon authored Jan 12, 2024
1 parent 83f0dd3 commit 8b02a2f
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,12 @@ git push -u -f origin master

#### git代理

git客户端代理设置
git客户端代理设置,以及取消代理

```
git config --global http.proxy 'socks5://127.0.0.1:1080' && \
git config --global https.proxy 'socks5://127.0.0.1:1080'
```

git客户端取消代理
```
git config --global --unset https.proxy
git config --global --unset http.proxy
```
Expand All @@ -162,15 +158,11 @@ git clone --depth=1 https://github.com/你的用户名/你的repo.git

#### Mac终端

Mac终端的代理设置(http&https)
Mac终端的代理设置(http&https)以及取消代理

```
export ALL_PROXY=socks5://127.0.0.1:1080
```
终端取消代理

```
unset ALL_PROXY"
```

Expand All @@ -180,8 +172,7 @@ unset ALL_PROXY"
curl cip.cc
```


#### 附ssh
#### ssh

```
## github ssh 配置
Expand All @@ -192,10 +183,9 @@ ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=8848
## socks5 代理
ProxyCommand nc -v -x 127.0.0.1:1080 %h %p
```

更多代理设置见:[SunSeekerX's Notebook-代理设置大全](https://doc.yoouu.cn/basic/proxy.html)
更多代理设置见:[SunSeekerX's Notebook-代理设置大全](https://doc.yoouu.cn/basic/proxy.html) (2024。1.12)

## ***essays***

Expand Down

0 comments on commit 8b02a2f

Please sign in to comment.