1.修改IP:
for example :
Gerrit/etc/gerrit.config
/etc/hosts:3:
172.16.2.108 rtdhcgit
/etc/httpd/conf/httpd.conf:276:ServerName
172.16.2.108
修复远端:(远端数据已损失本地有之前下载的本地仓)
ssh://rsgerrit:29418/SZ_SDK/CustBranch-QA160627-nuplayer/android/hardware/realtek/hwc
2.#在本地與git server上新建立的project做連結
git remote add origin ssh://stan_liu@172.29.5.3:
29418/SZ_SDK/bootcode
3.git checkout -b master(本地已有的话不需要在做此步)
#先建立本地 branch
4.git pull --no-edit origin master
#遠端的 master與本地的master會自動做git merge
5. git push -v origin 'refs/heads/*' 'refs/tags/*' 'refs/notes/*'
#這一步我看似乎會有一些錯誤 不過至少可以將 git log整個推上去
6.利用脚本和repo 批量完成上面的步骤:
7.有可能出现脚本运行完成后,某些project 推送或者建立不成功
a.可以从推送或编译时看出来
b.运行脚本前,检查是否有重名(根据脚本的flow 而定)
================test_cmd==================
-----------------------------script
ssh -p 29418 stan_liu@172.29.5.3 gerrit create-project SZ_SDK/build_scripts -b master --empty-commit
ssh -p 29418 stan_liu@172.29.5.3 gerrit set-project-parent --parent mirror-project-permission-base SZ_SDK/build_script
-----------------------------WRT
ssh -p 29418 stan_liu@172.29.17.63 gerrit create-project SZ_SDK/OpenWrt_new -b OpenWRT_master_A01 --empty-commit
ssh -p 29418 stan_liu@172.29.17.63 gerrit set-project-parent --parent mirror-project-permission-base SZ_SDK/OpenWrt_new
ssh -p 29418 stan_liu@172.29.17.63 gerrit create-project glinux_iptv/release -b OpenWRT_master_A01 --empty-commit
ssh -p 29418 stan_liu@172.29.17.63 gerrit set-project-parent --parent mirror-project-permission-base glinux_iptv/release
ssh -p 29418 stan_liu@172.29.17.63 gerrit create-project glinux_SDK1015/release -b OpenWRT_master_A01 --empty-commit
ssh -p 29418 stan_liu@172.29.17.63 gerrit set-project-parent --parent mirror-project-permission-base glinux_SDK1015/release
#在本地與git server上新建立的project做連結
#遠端project下載到本地,自动merge
git pull --no-edit origin OpenWRT_master_A01
git pull --no-edit origin master
#推送至遠端git server,#這一步我看似乎會有一些錯誤 不過至少可以將 git log整個推上去
git push -v origin 'refs/heads/*' 'refs/tags/*' 'refs/notes/*'
-----------------------------kernal
ssh -p 29418 stan_liu@172.29.5.3 gerrit create-project SZ_SDK/OpenWrt/linux-kernel-openwrt -b CustBranch_QA160627_nuplayer_6486476 --empty-commit
ssh -p 29418 stan_liu@172.29.5.3 gerrit set-project-parent --parent mirror-project-permission-base SZ_SDK/OpenWrt/linux-kernel-openwrt
#在本地與git server上新建立的project做連結
#遠端project下載到本地,自动merge
git pull --no-edit origin CustBranch_QA160627_nuplayer_6486476
#推送至遠端git server,#這一步我看似乎會有一些錯誤 不過至少可以將 git log整個推上去
git push -v origin 'refs/heads/*' 'refs/tags/*' 'refs/notes/*'
远端仓库搬家:
git pull --no-edit origin master --allow-unrelated-histories
git push -v origin 'refs/heads/*' 'refs/tags/*' 'refs/notes/*'
ssh -p 29418 stan_liu@
172.29.17.63 gerrit create-project SDK_release/139x_Docs -b master --empty-commit
ssh -p 29418 stan_liu@
172.29.17.63 gerrit set-project-parent --parent mirror-project-permission-base SDK_release/139x_Docs
ssh -p 29418 stan_liu@
172.29.17.63 gerrit create-project SDK_release/mirror_scripts -b master --empty-commit
ssh -p 29418 stan_liu@
172.29.17.63 gerrit set-project-parent --parent mirror-project-permission-base SDK_release/mirror_scripts
ssh -p 29418 stan_liu@
172.29.17.63 gerrit create-project trunk-9.0_hank_190806_SQA_Dailybuild_TV/20190808/toolchains -b master --empty-commit
ssh -p 29418 stan_liu@
172.29.17.63 gerrit set-project-parent --parent mirror-project-permission-base trunk-9.0_hank_190806_SQA_Dailybuild_TV/20190808/toolchains
ssh -p 29418 stan_liu@
172.29.17.63 gerrit create-project hs_env/rtk1395_vmx_1g -b master --empty-commit
ssh -p 29418 stan_liu@
172.29.17.63 gerrit set-project-parent --parent mirror-project-permission-basehs_env/rtk1395_vmx_1g
- 推送一个已有的代码到新的 gerrit 服务器
1.指定项目代码库中迭代列出全部ProductList(.git)到pro.log文件中 repo forall -c 'echo $REPO_PROJECT' | tee pro.log pro.l ...
- 【Repo】推送一个已有的代码到新的 gerrit 服务器
1.指定项目代码库中迭代列出全部ProductList(.git)到pro.log文件中 repo forall -c 'echo $REPO_PROJECT' | tee pro.log 命令解读: ...
- CentOS安装gitlab,gerrit,jenkins并配置ci流程
CentOS安装gitlab,gerrit,jenkins并配置ci流程 By Wenbin juandx@163.com 2016/4/9 这是我参考了网上很多的文档,配置了这三个软件在一个机器上, ...
- Centos 安装配置gerrit
关闭selinux,不然nginx的反向代理会报错connect() to 127.0.0.1:8080 failed (13: Permission denied) while connecting ...
- POJ 2255. Tree Recovery
Tree Recovery Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11939 Accepted: 7493 De ...
- Gerrit增加SSL证书
在http的基础上增加SSL 配置gerrit.config文件 [gerrit] basePath = git canonicalWebUrl = https://172.16.99.212/ .. ...
- Android手机刷recovery
以前觉得android刷机是件很麻烦的事,现在倒不觉得了. 只要手机刷入第三方的recovery,一切都好办了,无论是root还是刷google play. recovery开源的有两大阵营,tw ...
- Change the Target Recovery Time of a Database (SQL Server) 间接-checkpoints flushcache flushcache-message
Change the Target Recovery Time of a Database (SQL Server) 间接checkpoints flushcache flushcache-mes ...
- SQL Server恢复软件 Stellar Phoenix sql recovery
SQL Server恢复软件 Stellar Phoenix sql recovery http://www.stellarinfo.com/ http://www.stellarinfo.com/ ...
- SQL Server恢复软件SysTools SQL Recovery/SysTools SQL Server Recovery Manager
SQL Server恢复软件SysTools SQL Recovery/SysTools SQL Server Recovery Manager http://www.systoolsgroup.co ...
随机推荐
- jubyter notebook 安装conda 虚拟环境
- vvvvvv异步组件儿
const AsyncCommonItem = Vue.defineAsyncComponent(()=>{ return new Promise((resolve,reject)=>{ ...
- 37.Spring注解相关面试题
1.@Resource和@Autowired 区别 2.@Repository.@Component.@Service.@Controller 区别
- Onur Mutlu 18-447 Lecture9 分支预测-1
=============== 第一部分:branch prediction =========== 1. 最简单的分支预测:总是预测下一条指令的地址在 PC+4 如何让这种分支预测更加有效呢? Id ...
- 面试视频知识点整理1-7(http协议)
http协议类 1)http协议的主要特点 简单快速 统一资源符 灵活 通过http协议,可以修改http头,完成不同数据类型的传输 无连接 ...
- 进程间通信测试-signal
截图 代码 #include <stdio.h> #include <unistd.h> #include <signal.h> #include <stri ...
- 050_Sublime For Salesforce
之前安装工具都是在网上找的文章,照着步骤一点点来的,最近电脑升级所以要重新安装,花了一个小时终于搞好了,虽然说现在插件已经不维护了,但我觉得目前的工具还是可以够我用的: 1.我之前用的是3083版本, ...
- 接口自动化-pycharm下查看日志文件中文乱码
如图: 方法:pycharm 进入setting,找到File Encodings将编码全部设置gbk 现在室这样的: 修改为: 再次看日志:
- mysql查询锁表和表解锁的操作
转载自:https://www.cnblogs.com/qianxiaoruofeng/p/15542468.html 第一种 1.查询是否锁表 show OPEN TABLES where In_u ...
- 如何用jupyter打开代码并租用服务器进行运行
1.启用环境并打开项目 s1:打开anaconda,进入到anaconda prompt命令窗口: s2:(我的代码是pytorch,所以我的环境也是pytorch) a.激活环境:conda act ...