0
点赞
收藏
分享

微信扫一扫

中途配置ssh之后push报错

楚木巽 2022-01-05 阅读 11

最开始的远程仓库地址用的https的,后来因为配置ssh之后push代码报错 解决方案

1.首先会报错 LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
步骤:

git config --global --unset http.proxy
  git push <你的ssh仓库地址> main

2.再次git push 会报错 Repository not found.
步骤:

git remote rm origin
git remote add origin <你的ssh仓库地址>

3.再次 git push 提示 The current branch main has no upstream branch 当前与远程仓库没有关联
步骤:

 git push --set-upstream origin main

下次就可以 直接 git push 提交了

举报

相关推荐

0 条评论