Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git pull/push无法从github拉/推/到github,但git pull/push-vv可以_Git_Github_Git Push - Fatal编程技术网

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