且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

什么是回购协议?为什么Google使用它?

更新时间:2022-05-31 03:55:25

回购和git(它们的用途和用途)在

Repo and git - what they are, what they are for - is explained on source.android.com

要使用Android代码,您需要 将需要同时使用Git和Repo.

To work with the Android code, you will need to use both Git and Repo.

Git是一个开放源代码版本控制系统,旨在 处理非常大的项目 分布在多个 储存库.在上下文中 Android,我们将Git用于本地 本地分支等操作, 提交,差异和编辑.

Git is an open-source version-control system designed to handle very large projects that are distributed over multiple repositories. In the context of Android, we use Git for local operations such as local branching, commits, diffs, and edits.

Repo是我们在Git之上构建的工具.回购可帮助我们管理 许多Git储存库 上传到我们的版本控制 系统,并自动执行 Android开发工作流程.回购是 并非要取代Git,仅是为了 在Git中更轻松地使用Git Android的上下文.回购命令 是一个可执行的Python脚本, 您可以在路径中放置任何地方.

Repo is a tool that we built on top of Git. Repo helps us manage the many Git repositories, does the uploads to our revision control system, and automates parts of the Android development workflow. Repo is not meant to replace Git, only to make it easier to work with Git in the context of Android. The repo command is an executable Python script that you can put anywhere in your path.

据我所知,没有用于Repo的GUI,但是上面的站点上有很多指南可以从命令行控制Repo的工作.

There's no GUI for Repo, as far as I can tell, but there's quite a bit of guidance on the site above for controlling what Repo is doing from the command line.