回购同步的特定文件夹 [英] Repo Sync a particular folder

查看:154
本文介绍了回购同步的特定文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获得源$ C ​​$ C的Andr​​oid操作系统。 我如何回购从主分支同步特定文件夹?

解决方案

部分检出不支持使用Git的。

您可以尝试使用混帐子树了解,克隆后的所有回购协议,即回购到自己的项目回购的分割部分。

这是说,如果你是在谈论在Android,它们的Git回购的 项目之一,并且可以被管理与工具 回购
另请参见<一个href="http://stackoverflow.com/questions/449763/where-can-i-browse-android-source-$c$c-on-line">Where我可以浏览Android源$ C ​​$ C上线?

  

安装回购

  $卷曲http://android.git.kernel.org/repo&GT;〜/斌/回购
$搭配chmod A + X〜/斌/回购
$ MKDIR工作目录名
$ CD的工作目录名
$回购的init -u git的://android.git.kernel.org/platform/manifest.git
 

  

同步客户端

     
      
  • 要同步的文件所有可用的项目:
  •   

  $回购同步
 

  

- 要对选定的项目同步文件

  $回购同步PROJECT1项目2 ...
 

I am trying to get the source code for the android os. How do I repo sync a particular folder from the master branch?

解决方案

Partial checkouts are not supported with Git.

You could try using git-subtree for, after cloning the all repo, splitting part of that repo into your own project repo.

That said, if you are talking about one of the "projects" in the Android, they are Git repos, and can be managed with the tool "repo".
See also "Where can I browse Android source code on-line?"

Installing Repo

$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir working-directory-name
$ cd working-directory-name
$ repo init -u git://android.git.kernel.org/platform/manifest.git

Synchronizing your client

  • To synchronize the files for all available projects:

$ repo sync

-To synchronize the files for selected projects:

$ repo sync project1 project2 ...

这篇关于回购同步的特定文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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