赞
踩
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。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。