Skip to content

Instantly share code, notes, and snippets.

View RunThem's full-sized avatar
🎯
专注

iccy RunThem

🎯
专注
View GitHub Profile
@chenshengzhi
chenshengzhi / git_ssh_proxy.md
Last active October 21, 2025 10:13
git ssh 代理设置

仅为 GitHub 设置代理

git 代理

设置 git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
设置完成后, ~/.gitconfig 文件中会增加以下条目:

[http "https://github.com"]
    proxy = socks5://127.0.0.1:1086
@Tamal
Tamal / git-ssh-error-fix.sh
Last active September 8, 2025 15:18
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work