在GitHub组织中的所有Git存储库中搜索模式 [英] Search all Git repositories in a GitHub organization for a pattern

查看:52
本文介绍了在GitHub组织中的所有Git存储库中搜索模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个GitHub组织.该组织中大约有250个属于不同团队的存储库.我拥有该组织帐户的管理员访问权限.有没有一种方法可以理想地通过GitHub的Web界面在所有这些存储库中搜索模式?

I have a GitHub organization. There are about 250 repositories belonging to different teams in this organization. I have admin access to the organization account. Is there a way I can use to search for a pattern in all these repositories, ideally via GitHub's web interface?

我们计划更新某些 .jar 文件位置,但是我们需要知道这些存储库中的哪些代码正在使用旧位置.

We are planning to update some .jar file locations, but we need to know which code in these repositories is using the old locations.

推荐答案

这是在我公司内的GitHub组织上.我想通过浏览器或类似的工具在组织级别进行搜索,因为要遍历该组织下的250个存储库可能很麻烦.

This is on a GitHub org within my company. I want to search at the org level from my browser or something like that since it can be painful to go through the 250 repos under this org.

如果您导航到组织页面

https://github.com/<organizationName>

您应该在标题中看到一个搜索框:

you should see a search box in the header:

提交搜索后,您可能会在主面板上看到我们找不到与'organizationName query'相匹配的存储库".

Once you submit a search, you may see on the main panel " We couldn’t find any repositories matching 'organizationName query’".

但是您可以使用侧面导航栏从存储库搜索切换为代码搜索:

But you can switch from a repository search to a Code search using the side navigation bar:

这应该建立一个类似

https://github.com/search?q=org%3A<organizationName>+<query>&type=Code

在您的组织拥有的存储库中查找< query> 的实例.

that finds instances of <query> in repositories owned by your organization.

这篇关于在GitHub组织中的所有Git存储库中搜索模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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