repo 下载代码流程

本文详细介绍了在Linux环境下使用repo下载和管理Mediatek代码的步骤,包括初始化repo仓库、同步代码、清理多余文件以及设置环境变量等操作。通过`repo init`、`repo sync`等命令进行代码获取,并提供了相关配置和优化选项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值