close
The Wayback Machine - https://web.archive.org/web/20211008102131/https://docs.github.com/cn/search-github/searching-on-github/searching-users

Searching users

You can search for users on GitHub and narrow the results using these user search qualifiers in any combination.

You can search for users globally across all of GitHub. For more information, see "About searching on GitHub."

提示:

  • 有关可以添加到任何搜索限定符以进一步改善结果的搜索语法列表,请参阅“了解搜索语法”。
  • 对多个字词的搜索词使用引号。 例如,如果要搜索具有标签 "In progress" 的议题,可搜索 label:"in progress"。 搜索不区分大小写。

Search only users or organizations

By default, searching users will return both personal and organizations. However, you can use the type qualifier to restrict search results to personal accounts or organizations only.

QualifierExample
type:usermike in:name created:<2011-01-01 type:user matches personal accounts named "mike" that were created before 2011.
type:orgdata in:email type:org matches organizations with the word "data" in their email.

Search by account name, full name, or public email

You can filter your search to the personal user or organization account name with user or org qualifiers.

With the in qualifier you can restrict your search to the username (login), full name, public email, or any combination of these. When you omit this qualifier, only the username and email address are searched. For privacy reasons, you cannot search by email domain name.

QualifierExample
user:nameuser:octocat matches the user with the username "octocat".
org:nameorg:electron type:users matches the Electron organization's account name.
in:loginkenya in:login matches users with the word "kenya" in their username.
in:namebolton in:name matches users whose real name contains the word "bolton."
fullname:firstname lastnamefullname:nat friedman matches a user with the full name "Nat Friedman." Note: This search qualifier is sensitive to spacing.
in:emaildata in:email matches users with the word "data" in their email.

Search by number of repositories a user owns

You can filter users based on the number of repositories they own, using the repos qualifier and greater than, less than, and range qualifiers.

QualifierExample
repos:nrepos:>9000 matches users whose repository count is over 9,000.
bert repos:10..30 matches users with the word "bert" in their username or real name who own 10 to 30 repositories.

Search by location

You can search for users by the location indicated in their profile.

QualifierExample
location:LOCATIONrepos:1 location:iceland matches users with exactly one repository that live in Iceland.

Search by repository language

Using the language qualifier you can search for users based on the languages of repositories they own.

QualifierExample
language:LANGUAGElanguage:javascript location:russia matches users in Russia with a majority of their repositories written in JavaScript.
jenny language:javascript in:fullname matches users with JavaScript repositories whose full name contains the word "jenny."

Search by when a user account was created

You can filter users based on when they joined GitHub with the created qualifier. This takes a date as its parameter. 日期格式必须遵循 ISO8601标准,即 YYYY-MM-DD(年-月-日)。 您也可以在日期后添加可选的时间信息 THH:MM:SS+00:00,以便按小时、分钟和秒进行搜索。 这是 T,随后是 HH:MM:SS(时-分-秒)和 UTC 偏移 (+00:00)。

搜索日期时,可以使用大于、小于和范围限定符来进一步筛选结果。 更多信息请参阅“了解搜索语法”。

QualifierExample
created:YYYY-MM-DDcreated:<2011-01-01 matches users that joined before 2011.
created:>=2013-05-11 matches users that joined at or after May 11th, 2013.
created:2013-03-06 location:london matches users that joined on March 6th, 2013, who list their location as London.
created:2010-01-01..2011-01-01 john in:login matches users that joined between 2010 and 2011 with the word "john" in their username.

Search by number of followers

You can filter users based on the number of followers that they have, using the followers qualifier with greater than, less than, and range qualifiers.

QualifierExample
followers:nfollowers:>=1000 matches users with 1,000 or more followers.
sparkle followers:1..10 matches users with between 1 and 10 followers, with the word "sparkle" in their name.

Search based on ability to sponsor

You can search for users and organizations who can be sponsored on GitHub 赞助者 with the is:sponsorable qualifier. For more information, see "About GitHub 赞助者."

QualifierExample
is:sponsorableis:sponsorable matches users and organizations who have a GitHub 赞助者 profile.

Further reading

此文档对您有帮助吗?

隐私政策

帮助我们创建出色的文档!

所有 GitHub 文档都是开源的。看到错误或不清楚的内容了吗?提交拉取请求。

做出贡献

或, 了解如何参与。