git提交代码到gerrit案例

作者: 青纹刀狼 | 来源:发表于2019-01-10 23:43 被阅读84次

git提交代码到gerrit

步骤:

1.ssh-keygen -t rsa -C "ming@135.com"生成的秘钥,存放在gerrit对应的账户中

2.   

   git  config --global user.name "Your Name"

   git config --global user.email you@example.com

3.

创建工程project,选择创建的工程project中clone  with commit-msghook-----》选择http/ssh其中一种

下载到本地

发现本地有个project,进去创建代码文件dajiang.txt

git add .   /git commit  -m ""

最后

git push origin master:refs/for/master

效果:

相关文章

网友评论

    本文标题:git提交代码到gerrit案例

    本文链接:https://www.haomeiwen.com/subject/vqhirqtx.html