命令行:
git clone +"SSH"的網址
错误统计:
(1)执行git clone拉取代码出现错误RPC failed,curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054解决方法
10054
(2)git clone 错误报错gh auth login
git更换电脑账户后报错
To authenticate, please run `gh auth login`.
You can also set the one of the auth token environment variables, if preferred.
然后执行:gh auth login后继续报错:
$ gh auth login
? What account do you want to log into? [Use arrows to move, type to filter]
> GitHub.com
GitHub Enterprise Server
could not prompt: Incorrect function.
温馨提示:
如果之前已经验证过,请先执行:ssh -T git@github.com
如果不成功,再按照下面的解决方案重新来一遍
如果提示:
You've successfully authenticated, but GitHub does not provide shell access.
则成功, 如果gh repo clone 命令不能顺利执行,则换 SSH命令:git clone +"SSH"的網址
如果上述操作都不可以。。。。。。。。。请尝试下面的解决方案
然后解决方案:
解决方案在此
(2)关于上传:
复制这里的ssh网址
右键git bush here
然后
ssh -T git@github.com
git config --global user.name “XXXX”
git config --global user.email “XXXXX”
git init
git add .
git commit -m " "
git remote add origin git@github.com:xieyongzhi-CR7/URPProject_XYZ.git
git push -u origin master
(如果报错):git pull --rebase origin master
就提交上去了,在网址中刷新就能看到了