Agent Skills
› NeverSight/learn-skills.dev
› git-proxy
git-proxy
GitHub解决Git clone因网络问题连接GitHub失败的场景。通过临时设置代理(默认端口10808)执行克隆操作,并在完成后自动还原代理配置,避免影响其他项目。
Trigger Scenarios
git clone 连接 GitHub 失败
出现 Failed to connect to github.com port 443 错误
出现 Could not connect to server 错误
git clone 连接超时
Install
npx skills add NeverSight/learn-skills.dev --skill git-proxy -g -y
SKILL.md
Frontmatter
{
"name": "git-proxy",
"description": "解决 Git clone 失败时的代理设置问题"
}
git-proxy
当 git clone 连接 GitHub 失败时,自动设置代理并还原。
When to use
当执行 git clone 时出现以下错误:
Failed to connect to github.com port 443Could not connect to server- 连接超时等网络错误
Instructions
-
设置 Git 代理(默认端口 10808):
git config --global http.proxy http://127.0.0.1:10808 git config --global https.proxy http://127.0.0.1:10808 -
执行原本失败的 git clone 命令
-
操作完成后立即还原代理设置:
git config --global --unset http.proxy git config --global --unset https.proxy
Notes
- 用户常用代理端口是
10808 - 完成后务必还原,避免影响其他项目
Version History
- e0220ca Current 2026-07-05 21:31


