repo的实际使用_repo 切换分支_权艺的博客-优快云博客
(486条消息) repo和Git的关系_布拉德利_蔡的博客-优快云博客_git repo
repo init -u xxx
repo sync
repo start dev --all
#只拉取当前分支
repo sync -c --no-tags
git config --global core.editor vim
git config --global core.editor gedit
git commit -s
git commit --amend
repo upload .
//提交完以后 Pull代码
git pull --rebase
3.删除文件后需要 git add -A, 光 git add. 不行,区别如下:
git add 的几种参数区别
git add -A 保存所有的修改
git add . 保存新的添加和修改,但是不包括删除
git add -u 保存修改和删除,但是不包括新建文件。
**为所有项目创建localBranchName分支的命令如下:**
repo status
#repo切换分支
repo forall -c 'git checkout release-v2.14'
repo start dev --all
repo checkout dev
repo branch
#删除分支.
repo abandon release-v2.14
git pull --rebase_卢卡喵的博客-优快云博客
https://download.youkuaiyun.com/blog/column/7084978/130886620
repo 使用
Repo/Git 常用命令使用_repo查看提交记录-优快云博客
这下就明了了吧,这个manifest目录本身其实也是一个git库,一个Android版本对应一个分支,其中的default.xml就记录着这个版本所需要的库,repo工具再根据这个文件去把取各个库的对应分支并最终组合起来。
总结一下,Git管理单独的模块,而repo管理所有的Git库,将多个Git库组合在一起,形成一个完整的大版本。