Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/23.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
无法推送到github中的主分支_Git_Github - Fatal编程技术网

无法推送到github中的主分支

无法推送到github中的主分支,git,github,Git,Github,我在github有一个回购协议,有master和1.0分支 当我将更改从本地回购推送到github再推到1.0分支时,一切正常 但当我将更改从本地推送到github再推送到主分支时,它失败了,并显示以下消息: fatal: The remote end hung up unexpectedly error: RPC failed; HTTP 503 curl 22 The requested URL returned error: 503 Service Unavailable 我没有受保护的

我在github有一个回购协议,有master和1.0分支

当我将更改从本地回购推送到github再推到1.0分支时,一切正常

但当我将更改从本地推送到github再推送到主分支时,它失败了,并显示以下消息:

fatal: The remote end hung up unexpectedly
error: RPC failed; HTTP 503 curl 22 The requested URL returned error: 503 Service Unavailable
我没有受保护的树枝。 我是github回购协议的所有者。 起源看起来像https://user@github.com/user/repo.git 我做错了什么?

将原点更改为https://github.com/user/repo.git 它是有效的

更新。
看来是github服务器的错误

我真的不认为这是你的问题。503服务器错误通常意味着服务暂时不可用,通常是由于高网络流量。唯一的更改是开始时的用户名。我不知道这有什么关系,但它很有帮助。因为您的不同分支都指定了同一个遥控器,所以我看不出这有什么不同。此外,还有两个类似的问题,在30分钟内,您遇到了相同的问题,这意味着Github的serversOk出现了问题,似乎这只是一个服务器错误。可能是进行了一些维护工作。谢谢你的链接。尽管如此,我认为像你那样更改url仍然是一个好主意,因为它看起来像是https之间的混合https://github.com/user/repo.git 还有宋承宪git@github.com:user/repo.git版本。我已经确认,我仍然可以使用https://user@github.com/user/repo.git,但我不确定这是github的标准功能还是特殊功能。