什么是回购协议?为什么Google使用它? [英] What is Repo and Why does Google use it?

查看:134
本文介绍了什么是回购协议?为什么Google使用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我想获取Android源代码时,我知道必须使用"repo".那么什么是回购协议?为什么他们为什么要使用repo而不是仅使用GIT?还有一个用于repo的GUI,使我可以暂停/恢复同步,因为每次我偶尔断开连接时,似乎repo从头开始同步!

When I wanted to get Android source code, I knew that I have to use "repo". So what is repo? Why do they use repo and not just use GIT?, and is there a GUI for repo that enables me to pause/resume syncing, because every time I get disconnected occasionally it seems that repo starts syncing from the beginning!

推荐答案

回购和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.

这篇关于什么是回购协议?为什么Google使用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆