Hi FE !
Ai
git
前端面试题
前端小tip
  • vite
  • webpack
npm
  • vue2
  • vue3
react
GitHub
Ai
git
前端面试题
前端小tip
  • vite
  • webpack
npm
  • vue2
  • vue3
react
GitHub
  • git Recv failure: Connection was reset

git Recv failure: Connection was reset

https访问 仅为github.com设置socks5代理(推荐这种方式, 公司内网就不用设代理了, 多此一举):

git config --global http.https://github.com.proxy socks5://127.0.0.1:1086

其中1086是socks5的监听端口, 这个可以配置的, 每个人不同, 在macOS上一般为1086.

我的是7890

不行的话

移除旧的origin :git remote remove origin 再重新建立新的origin : git remote add origin http://github.com/××× 再试试

Edit this page
最近更新: 2025/6/27 02:24
Contributors: qdleader
qdleader
本站总访问量 129823次 | 本站访客数 12人