当前位置:   article > 正文

创建repo服务器及使用_repo init -u ssh:

repo init -u ssh:

1、登陆gerrit服务器创建linux/manifest工程:ssh -p 29418 gerrit@192.168.10.57 gerrit create-project -n linux/manifest;

2、在本地 git clone ssh://YOURNAME@192.168.10.57:29418/linux/manifest.git;

3、cd manifest,git config remote.origin.push master:refs/for/refs/heads/master,新建default.xml文件,内容格式参考附件。再提交,再到服务器审核通过;(default.xml文件包含了repo管理的git库,后期可修改该文件来修改repo管理的git库)

4、在本地新建linux目录,进入linux目录,repo init -u ssh://192.168.10.57:29418/linux/manifest.git,repo sync;

5、repo start myworkbranch --all;

6、修改代码并提交:如cd linux下的kernel目录,

    a、touch test.c;

    b、git add test.c;

    c、git commit -m "add test.c"

    d、返回linux目录,执行repo upload。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/636842
推荐阅读
相关标签
  

闽ICP备14008679号