git pull/push无法从github拉/推/到github,但git pull/push-vv可以
我曾多次遇到,git pull/push无法从github拉/推/到github,但git pull/push-vv可以,git,github,git-push,Git,Github,Git Push,我曾多次遇到,git push无法推送到github,而git push-vv可以,例如检查我刚才运行的以下结果。我找不到关于-vv的文档,除了明显的输出更详细 同样的情况也发生在git pull上 那为什么呢?还是这真的只是运气 ws_redis ➤ git push -v origin v4 Pushing to https://githu
git push
无法推送到github,而git push-vv
可以,例如检查我刚才运行的以下结果。我找不到关于-vv
的文档,除了明显的输出更详细
同样的情况也发生在git pull上
那为什么呢?还是这真的只是运气
ws_redis ➤ git push -v origin v4
Pushing to https://github.com/qiulang/ws_redis.git
fatal: unable to access 'https://github.com/qiulang/ws_redis.git/': Failed to connect to github.com port 443: Operation timed out
ws_redis ➤ git push -v origin v4
Pushing to https://github.com/qiulang/ws_redis.git
fatal: unable to access 'https://github.com/qiulang/ws_redis.git/': Failed to connect to github.com port 443: Operation timed out
ws_redis ➤ git push -vv origin v4
Pushing to https://github.com/qiulang/ws_redis.git
Enumerating objects: 98, done.
Counting objects: 100% (98/98), done.
Delta compression using up to 8 threads
Compressing objects: 100% (84/84), done.
Writing objects: 100% (87/87), 20.73 KiB | 1.22 MiB/s, done.
Total 87 (delta 53), reused 0 (delta 0)
POST git-receive-pack (21396 bytes)
remote: Resolving deltas: 100% (53/53), completed with 8 local objects.
remote:
remote: Create a pull request for 'v4' on GitHub by visiting:
remote: https://github.com/qiulang/ws_redis/pull/new/v4
remote:
To https://github.com/qiulang/ws_redis.git
* [new branch] v4 -> v4
updating local tracking ref 'refs/remotes/origin/v4'
或
---更新---
如果我最近从中国访问,github服务是相当不稳定的。所以我猜可能是运气不好。这里的问题很相似,谢谢,但我检查了其中一个问题,我认为他的问题不同。你有两次超时,然后成功连接。我想,如果您先使用
git push-vv
,然后使用git push-v
第二次,然后使用git push-vv
第三次,您仍然会有两次超时,然后连接成功。也就是说,-v
标志并不重要:唯一重要的是运气。我最初是这么想的,但发生了好几次,让我怀疑这真的只是运气吗?从中国大陆到GitHub的连接从未稳定过。去买一些类似VPN的服务。
//I run following commands together
lang@localhost qiulang.github.io % git pull --verbose
From https://github.com/qiulang/qiulang.github.io
= [up to date] master -> origin/master
Already up to date.
lang@localhost qiulang.github.io % git pull
fatal: unable to access 'https://github.com/qiulang/qiulang.github.io.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
lang@localhost qiulang.github.io % git pull -vv
From https://github.com/qiulang/qiulang.github.io
= [up to date] master -> origin/master
Already up to date.
lang@localhost qiulang.github.io % git pull
fatal: unable to access 'https://github.com/qiulang/qiulang.github.io.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443