我可以将储存库安排到Github上的文件夹中吗? [英] Can I arrange repositories into folders on Github?

查看:141
本文介绍了我可以将储存库安排到Github上的文件夹中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是git的新手,现在我正在做的是将我最近的所有项目作为存储库上传到github。有很多不同的项目,如网页设计,WordPress主题和不同类型的应用程序。其中一些也属于较大的项目,因为它们将测试一些东西作为一个不同的应用程序。



问题是我现在在线上有大量的存储库。如何将相关的github存储库分组到一个文件夹结构中?有没有一种功能可以在github上订购,结构甚至标记仓库?

解决方案

在GitHub本身上,您的文件夹回购,除非您创建组织

例如,请参阅 SublimeText ,作为一组所有sublimeText软件包回购。



但这不会支持嵌套的文件夹组织。 现在(2017年6月),仅支持嵌套的团队组织结构




另一个解决方案是让您定义参考其他回购的存储库,声明为 子模块

>

这样,当你克隆其中一个repos(引用其他回购)时,称为父回购,它们将被克隆到它们自己的目录中,并有一个子目录每个子模块。

它不会在您的GitHub账户中显现出来(因为它仍然包含大量的回购协议,甚至更大的回购协议),但通过克隆一个父级回购,您将收回其中的所有相关子模块。


I am new to git and what I am doing now is to upload all my recent projects as repositories to github. There are a lot of different projects like webdesign, wordpress themes and different types of applications. And some of these also belong to bigger projects because they were about testing some stuff as a different application.

The problem is that I have a confusing amount of repositories online now. How can I group related github repositories in a folder structure? Is there a feature providing any ability to order and structure or even tag repositories on github?

解决方案

On GitHub itself, you cannot group your repos by "folder", unless you create organizations.
See SublimeText, for instance, as a group of all sublimeText packages repos.

But that won't support a nested folder organization.

For now (June 2017), that only support a nested team organization structure.


Another solution is for you to define repositories which reference other repos, declared as submodules.

That way, when you are cloning one of the repos (which references other repos), called "parent repos", they will be cloned in their own directory, with a sub-directory per submodules.

It won't be visually apparent on your GitHub account itself (as it will still contains a large list of repos, even larger with the parent repos), but by cloning one parent repo, you will get back all its associated submodules in it.

这篇关于我可以将储存库安排到Github上的文件夹中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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