简体   繁体   English

将Android源代码目录从一台计算机复制到另一台计算机

[英]Copying Android source code directory from one computer to an other one

I have downloaded the Android source code on my computer using the repo sync command. 我已经使用repo sync命令在计算机上下载了Android源代码。 Since I have no experience with git and repo , I would like to know if it is possible to copy the mydroid directory (which contains Android source code) to an other computer by just burning it on a DVD and then processing the build without problems. 由于我没有使用git和repo的经验,因此我想知道是否可以通过将mydroid目录(包含Android源代码)复制到另一台计算机上,方法是将其仅刻录到DVD上,然后处理构建而不会出现问题。

Thanks in advance and sorry if my question is stupid 在此先感谢,如果我的问题很愚蠢,对不起

Yes, all you have to do is to copy the directory containing .git directory. 是的,您要做的就是复制包含.git目录的目录。 You can test it out by copying it locally and then going into that copied directory and perform a few git commands (like git log ). 您可以通过在本地复制它,然后进入复制的目录并执行一些git命令(例如git log )来对其进行测试。

是的,复制Android根目录可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM