故障现象1:
$ git push --set-upstream origin master
remote: Repository not found.
fatal: repository 'https://github.com/hello5635/apple.git/' not found
根本原因:
hello5635这个账号里面没有apple.git这个仓库/repository

如果想将其文件夹下内容,push到这个helloasimo/apple.git地址,需要在hello5635这个账号的文件夹下,进行如下操作:
Administrator@DEEP-2205010009 MINGW64 /d/git/21_apple/apple (master)
$ git remote set-url origin https://ghp_ghp_BfgbXTNhNk6iWpNOE2f3UcS@github.com/helloasimo/apple.git/
Administrator@DEEP-2205010009 MINGW64 /d/git/21_apple/apple (master)
$ git remote -v
origin https://ghp_BfgbXTNhNk6iWpNOE2f3UcS@github.com/helloasimo/apple.git/ (fetch)
origin https://ghp_BfgbXTxhNk6iWpNOE2f3UcS@github.com/helloasimo/apple.git/ (push)
Administrator@DEEP-2205010009 MINGW64 /d/git/21_apple/apple (master)
$ git push --set-upstream origin master
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 304 bytes | 304.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/helloasimo/apple.git/
7c4810a..6e11d2e master -> master
branch 'master' set up to track 'origin/master'.
Administrator@DEEP-2205010009 MINGW64 /d/git/21_apple/apple (master)
$
故障现象2:
Administrator@DEEP-2205010009 MINGW64 /d/git/21_apple/apple (master)
$ git pull
fatal: unable to access 'https://github.com/helloasimo/apple.git/': OpenSSL SSL_read: Connection was reset, errno 10054
解决办法:
多等一会后再试几次就可以了.
有可能是网易UU加速器短暂没有把github访问处理好导致。

本文介绍了在使用Git时遇到的两个常见错误:1) 尝试推送代码到仓库时提示'Repository not found',原因是目标仓库不存在。解决方法是确认并设置正确的远程仓库URL。2) 执行`git pull`操作时遇到'OpenSSL SSL_read: Connection was reset, errno 10054',可能是因为网络问题。解决建议是稍后重试或检查网络代理设置。通过这两个案例,文章提供了Git故障排查的基本步骤。
1220

被折叠的 条评论
为什么被折叠?



