如何在Github上找到回购所依赖的回购? [英] How to find which repos a repo depends on at Github?

查看:84
本文介绍了如何在Github上找到回购所依赖的回购?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Github上找到回购所依赖的回购。

I want to find out which repos a repo depends on at Github.

现在我只能找到回购所依赖的回购,即哪个回购所依赖在回购上。

Now I can only find the dependent repos of a repo, that is, which repos depends on a repo.

我可以在Github中以相反的方式找到存储库吗?

Can I find the repos in the reversed way at Github?

推荐答案

这取决于您的依赖关系概念。

It depends on your notion of "dependencies".

在Git存储库中,一个明显的依赖关系是 子模块

In term of Git repositories, one clear dependency is the notion of submodules

在GitHub上,只需检查是否存在.gitmodules文件,您便会在其中获取相关存储库的URL列表。

On GitHub, simply check for the presence of a .gitmodules file, you you would get in it the list of the url of dependent repository.

但是相反易于获取:对于给定的存储库,很难找到使用它的存储库列表。

也许尝试使用 GitHub代码搜索,将其搜索限制为扩展名为 .gitmodules 的文件。

示例: vysheng / tg扩展:gitmodules :您会看到使用 vysheng / tg 的回购清单这样子模块。

But the reverse wouldn't be easy to get: for a given repo, is is harder to find the list of repositories using it.
Maybe try a GitHub code search, limiting its search to files with extension .gitmodules.
Example: vysheng/tg extension:gitmodules: you see the list of repos using vysheng/tg as a submodule that way.

这篇关于如何在Github上找到回购所依赖的回购?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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