
DevOps
开发运维
geminimuchachas
这个作者很懒,什么都没留下…
-
原创 repo命令实现把当前下载的代码无历史记录上传到其他服务器
当前repo sync同步最新代码后执行下面的命令:repo forall -c 'git remote add dst git@address:groups/$REPO_PROJECT.git'repo forall -c 'git checkout --orphan develop HEAD'repo forall -c "git commit -m 'initial version'"repo forall -c 'git push dst develop'git命令知识点:1.2020-09-03 11:32:5723
0
-
原创 自动同步repo管理仓库到本地gitlab服务器脚本开发
需求:需要把A公司代码自动同步到B公司并且把下载代码的xml文件推送到仓库难点:xml文件自动生成需要用正则表达式本人实际应用时需要把下面xml文件更改echo "deal with xml file..."sed -ie '/<project/s/revision=".*"/remote="atc" revison="'"$new_branch"'"/' $new_branch.xmlsed -i '/<default/d' $new_branch.xmlsed.2020-08-26 15:53:5460
0