当前位置:   article > 正文

git push报错Connection was reset_git push recv failure: connection was reset

git push recv failure: connection was reset

解决git push报错“fatal: unable to access ‘https://github.com/xxx/xxx.git/’: Recv failure: Connection was reset”

1、查看

git config --global -l
  • 1

​ 将自己的信息写入,远程仓库地址,用户名等

git config --global user.name "user_name"
git config --global user.email "email_id"
git config --global credential.https://github.com/user_name.provider generic
  • 1
  • 2
  • 3

注意user_name为GitHub名,email_id为与之关联的邮箱

2、写入后提交

git status
git add -A .
git commit -m "dslab"
git push
  • 1
  • 2
  • 3
  • 4
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/163091?site
推荐阅读
相关标签
  

闽ICP备14008679号