我们知道,Android源码是用repo来管理的,但工作中我们需要用git来管理Android源码,于是需要将
一个repo仓库转成一个git仓库。repo管理着多个git工程,只需将.git文件夹和所有的.gitignore文件删除即可。
下载源码后,先不要急着编译。
find . -name ".git" | xargs rm -Rf
find . -name ".gitignore" | xargs rm -Rf
git init
git add -A
git commit -m "add qcom android6.0 src"
这样一个git仓库就就生成了。
本文详细介绍了如何将Android源码从使用repo管理的仓库转换为git仓库,包括删除.git文件夹和.gitignore文件,初始化git仓库,添加所有文件并提交到仓库的过程。
354

被折叠的 条评论
为什么被折叠?



