Skip to content

Commit

Permalink
add git clone with http
Browse files Browse the repository at this point in the history
  • Loading branch information
comwrg authored Mar 4, 2019
1 parent f89ceea commit 77310e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ proxy=http://localhost:1087
Host github.com
ProxyCommand nc -X 5 -x 127.0.0.1:1080 %h %p
```

### clone with http
```
git config --global http.proxy http://127.0.0.1:1087
git config --global https.proxy http://127.0.0.1:1087
```
建议使用http, 因为socks5 在使用git-lfs时会报错`proxyconnect tcp: dial tcp: lookup socks5: no such host`

### Reference
https://gist.github.com/laispace/666dd7b27e9116faece6

Expand Down

0 comments on commit 77310e5

Please sign in to comment.