repo start --all "local_hap" //创建repo 分支(all)
repo forall -c "git merge origin/hw/omap/I.E2/bugfix" //整个branch 进行merge
git fetch origin //同步远程git仓
git merge origin/hw/omap/I.E2/bugfix //单git 仓merge
git push origin local_hap:hw/omap/I.E2/HAP //push到远程分支
repo forall -c "git push origin local_hap:hw/omap/I.E2/HAP" //所有git仓push
git checout -- . //还原git仓
git branch -a | grep E1 //查看分支
git log --oneline --decorate=full --all --graph //查看log
git diff 单号^ 单号 //对比前后的不同
进入到/prebuild目录下,执行git stash 会把status信息暂存,再执行repo status, 要还原使用git stash pop
find ./ -name "*.mk"|xargs grep checkapi-current-timestamp 查找文件内容
一般在merge出现冲突后我们这样:
git fetch origin
git merge origin/hw/omap/I.E2/bugfix
//解决冲突 add commit
git push origin local_bugfix:hw/omap/I.E2/bugfix
//对于异常的仓可以使用
进入到/prebuild目录下,执行git stash 会把status信息暂存,再执行repo status, 要还原使用git stash pop
常用打tag方式:
git tag -m "Release 1.0" v1.0
git push origin refs/tags/v1.0
打patch方式:
git format-patch a .. b
取tag版本:
repo init -u ssh://android.huawei.com/platform/omapmanifest.git -b hw/sh/ics/omap/PreAlpha -m app_huawei_platform_ti_ics_Alpha_ti_generic_product_20111223_B005.xml --no-repo-verify --repo-branch=stable