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
Github 无法将更改推送到gerrithub.io_Github_Gerrit - Fatal编程技术网

Github 无法将更改推送到gerrithub.io

Github 无法将更改推送到gerrithub.io,github,gerrit,Github,Gerrit,我这里有回购协议 我克隆了它并做了一些更改,但当我尝试推动它时 它给了我以下错误: $ git push origin HEAD:refs/for/master Username for 'https://review.gerrithub.io': ardyflora Password for 'https://ardyflora@review.gerrithub.io': fatal: Authentication failed for 'https://review.gerrithub.i

我这里有回购协议

我克隆了它并做了一些更改,但当我尝试推动它时

它给了我以下错误:

$ git push origin HEAD:refs/for/master
Username for 'https://review.gerrithub.io': ardyflora
Password for 'https://ardyflora@review.gerrithub.io':
fatal: Authentication failed for 
'https://review.gerrithub.io/ardyflora/virginPulseAuto/'

我甚至添加了ssh密钥。任何提示或帮助都将不胜感激:)

HTTPS身份验证失败。你最好试试SSH

使用浏览器复制存储库的SSH URL,并更新本地
源文件

$ git remote set-url origin <ssh-clone-url>

$ git push origin HEAD:refs/for/master
$git远程设置url源
$git推送原点磁头:refs/for/master

谢谢,有一个更改:
git push origin HEAD:refs/for/master
已更新。
git-push-origin-master
是否不适合您?可能是针对gerrit,不确定。
git push origin master
更新回购协议。但当我执行
HEAD:refs/for/master
时,它会将其发送到gerritreview页面。