用repo创建本地版本库

转载:https://wenku.baidu.com/view/5ad899193c1ec5da51e27027.html

http://www.xuebuyuan.com/2004935.html

立repo 本地仓库$mkdir /home/git/android$cd /home/git/android$repo init -u git://android.git.kernel.org/plaorm/manifest.git--mirror $repo syncstep 1: download Android source$mkdir /home/git/android-repo$cd /home/git/android-repo$repo init --mirror -u /home/git/android/plaorm/manifest.git-b android-4.2.1_r1$repo syncStep 2: 建立本地版本库$mkdir android-4.2.1_r1$cd android-4.2.1_r1$repo init -u /home/git/android-repo/plaorm/manifest.git-b android-4.2.1_r1$repo syncStep 3: clone$repo start our-master --all$cd docs/source.android.com$echo aa > test.txt$git add test.txt$git commit -m "add test.txt" $git push aosp our-master(修改文件, 提交, push 到远程): $cd .repo/manifests 修改 <default revision="refs/tags/android-4.2.1_r1" 为="" aosp/our-master (sync 下来的默认分支即为our-master)$git branch -aStep 5: 使用 ( git 服务器可用)re




https://wenku.baidu.com/view/9abab4c8f7ec4afe05a1df07.html?rec_flag=default&mark_pay_doc=2&mark_rec_page=1&mark_rec_position=2&mark_rec=view_r_1&clear_uda_param=1&sxts=1525244761632

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值