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

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

问题描述

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

问题是我现在有大量令人困惑的在线存储库.如何在文件夹结构中对相关的 github 存储库进行分组?是否有任何功能可以在 github 上订购和构建甚至标记存储库?

解决方案

2021 年 12 月更新:

<块引用>


原答案:

在 GitHub 本身上,您不能按文件夹"对存储库进行分组,除非您创建了

GitHub 现在还支持标签(以 主题 的形式).


2012 年的原始答案:

另一种解决方案是定义引用其他存储库的存储库,声明为 子模块.

这样,当您克隆其中一个存储库(引用其他存储库)时,称为父存储库",它们将被克隆到自己的目录中,每个子模块都有一个子目录.

它在您的 GitHub 帐户本身上不会很明显(因为它仍然包含大量的存储库,甚至与父存储库更大),但是通过克隆一个父存储库,您将取回其所有关联的子模块在里面.


问题 302 提到了 在评论中 AnneTheAgile 在 2014 年仅引用现在(2018 年 11 月)tbnorth/github_repo_tags

<块引用>

小型python程序在这个GitHub存储库中使用了GitHub API获取您的回购列表.并将它们的名称、描述和 URL 添加到一个新的仓库中,默认情况下称为 repo_tags.最初,每个问题"都被标记为未分类,但您可以使用常规问题标记来随意标记它们.

重新运行时,repo_tags.py 只会为 repos 创建问题.问题尚未涵盖的内容.

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?

解决方案

Update Dec. 2021:

Lists are now available as a public beta

Lists level up the starring experience by making it easy to organize and curate your favorite repositories on GitHub.

You can create public lists that appear on your stars page at https://github.com/USERNAME?tab=stars.

Lists are available to everyone except enterprise managed users.


Original answer:

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 supports a nested team organization structure.


Update Aug. 2020: the README project allows you to add a profile page... in which you can list and organize your repositories any way you want. But that is a manual process (editing the page).


Update February 2019: you now have the concept of project:
See "User owned projects—your personal workspace "

You can also link up to 5 repositories to your project board. Linking repositories will limit the scope of the search to those linked repositories, so you can quickly narrow down any new issues you haven’t yet added to the project board

GitHub also supports tags now (in the form of topics).


Original answers 2012:

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.


The issue 302 mentioned in the comments by AnneTheAgile in 2014 just references now (Nov. 2018) tbnorth/github_repo_tags

The small python program in this repository uses the GitHub API to get a list of your repos. and add their name, description, and URL, to a new repo., by default called repo_tags. Initially each "issue" is tagged unclassified, but you can tag them as you please, using regular issue tagging.

When re-run, repo_tags.py only creates issues for repos. that weren't already covered by an issue.

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

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