用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 修改




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

你可能感兴趣的:(用repo创建本地版本库)