@zongwu
2017-06-01T07:12:49.000000Z
字数 833
阅读 491
扑咚健康
新增一条记录,映射到gerrit.healthbok-inc.com
172.16.8.191 gerrit.healthbok-inc.com
Host gerrit.healthbok-inc.com
HostName 172.16.8.191
Port 29418
IdentityFile ~/.ssh/id_rsa
KexAlgorithms diffie-hellman-group1-sha1
PubkeyAcceptedKeyTypes +ssh-dss
HostKeyAlgorithms +ssh-dss
参考资料:https://wiki.archlinux.org/index.php/Secure_Shell#Using_OpenSSH_with_legacy_SSH_implementations
git clone ssh://junqi.chen@gerrit.healthbok-inc.com/pdactivity.git
commit-msg的脚本下载地址:http://gerrit.healthbok-inc.com/tools/hooks/commit-msg
注意查看git的全局的邮件地址的配置,可以使用命令git config -l
查看全局的配置。
其中配置的地址要与 gerrit 设置的一致。
否则推送会产生异常。
确保上述均无问题之后,可以尝试推送。
git push origin master:refs/for/master
gerrit 地址:http://gerrit.healthbok-inc.com/
注意一定要使用自己的帐号与密码登录,因为gerrit貌似有问题,无法注销登录的。