简体   繁体   English

回购初始化有什么作用?

[英]what does repo init do?

As per android docs 根据android文档

Run repo init to bring down the latest version of Repo with all its most recent bug fixes. 运行repo init可以删除最新版本的Repo及其最新的错误修复。 You must specify a URL for the manifest, which specifies where the various repositories included in the Android source will be placed within your working directory. 您必须为清单指定一个URL,该URL指定将Android源中包含的各种存储库放置在工作目录中的位置。 $ repo init -u https://android.googlesource.com/platform/manifest $ repo init -u https://android.googlesource.com/platform/manifest

What does it mean by bring down the latest version of repo? 降低最新版本的repo是什么意思? and if it brings down latest versions of the code how it is different from repo sync 如果它降低了代码的最新版本,它与回购同步有何不同

In git in general, repo init will start a brand new repo. 通常,在git中,repo init将启动一个全新的repo。 Repo sync will sync an existing repo with the remote version. 存储库同步会将现有存储库与远程版本同步。

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

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