repo 下载代码流程
https://online.mediatek.com/_layouts/15/mol/topic/ext/Topic.aspx?id=392
下载D8代码
repo init -u git@myfunsdk.com:faceid-doordu/manifest -b faceid-doordu
repo sync
清除repo没有管理的多余的文件
repo forall -c git reset --hard HEAD;repo forall -c git clean -xfd;repo sync -cdf --force-sync
repo forall -c git reset;repo forall -c git clean -xdf;repo sync -c -f -j8 --no-repo-verify --optimized-fetch
repo forall -c "git clean -xdf" && repo forall -c "git checkout ." && repo sync -j8
39O 代码下载步骤
1,su root
2,安装 git
sudo apt-get install git-core gitk git-gui
git config --global user.name yourname
git config --global user.email "youremail"
3,安装 repo (直接安装mtk的 repo 简单点,google 的麻烦)
cd ~/bin
git clone http://git01.mediatek.com/repo
4,配置mtk的repo 账户信息
vim ~/.netrc 默认没有这个,直接编辑
输入
machine git01.mediatek.com login tangxun-sp-git01-user password vnVJxiQ4
退出保存
5,init repo 仓库
mkdir myandroid
cd myandroid
way1
~/bin/repo/repo init -u http://git01.mediatek.com/alps_release/platform/manifest -b tangxun -m alps-release-o1.mp1-default.xml --no-repo-verify
way2
~/bin/repo/repo init -u http://git01.mediatek.com/alps_release/platform/manifest -b tangxun -m t-alps-release-o1.mp1-V1.xml --no-repo-verify
6,sync repo 仓库
~/bin/repo/repo sync -c -f -j8 --no-repo-verify --optimized-fetch
7,把repo加入环境变量
.bashrc最后增加 PATH=~/mtk_mirror/bin/repo:$PATH
8,显示 log
repo forall -c git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
9,查看文件状态
repo status