跳至主要内容

通过星标保存仓库

您可以给仓库和主题加星,以便跟踪感兴趣的项目,并在动态中发现相关内容。

您可以在您的星标页面上搜索、排序和过滤已加星标的仓库和主题。

关于星标

给仓库或主题加星标可以让您以后轻松找到它们。您可以前往星标页面查看您已加星标的所有仓库和主题。

您可以给仓库和主题加星标,以发现 GitHub 上的相似项目。例如,在您给 GitHub 的绿色软件目录加星标后,您将在个人仪表板中看到其他与绿色软件相关的内容。

给仓库加星标也向仓库维护者表示赞赏。GitHub 的许多仓库排名取决于仓库的星标数量。此外,探索 GitHub会根据星标数量显示热门仓库。

给仓库加星标

给仓库加星标是一个简单的两步过程。

  1. 在 GitHub 上,导航至仓库的主页面。
  2. 在页面右上角,单击 Star(星标)。
    Screenshot of the repository bar with the "Star" option highlighted with a dark orange outline.
  3. 如果需要取消已加星标的仓库,可点击 Starred(已加星标)。这将把仓库从您的星标列表中移除。
    Screenshot of the repository bar. The "Starred" button is highlighted with a dark orange outline.

查看谁给仓库加了星标

您可以查看所有给公共仓库或您有访问权限的私有仓库加星标的用户。

要查看给某个仓库加星标的所有用户,只需在仓库的 URL 末尾添加 /stargazers。例如,要查看 github/docs 仓库的加星者,请访问 https://github.com/github/docs/stargazers

使用清单组织已加星标的仓库

注意

清单目前处于公开预览阶段,可能会有更改。

使用公开清单整理您已加星标的仓库。您可以创建公开清单,它们将在您的星标页面 https://github.com/USERNAME?tab=stars 中显示。

Screenshot the "Stars" tab of Octocat's profile. Two named lists of stars are displayed.

如果您将私有仓库添加到清单中,则只有对该仓库拥有 read(读取)权限的人才能在您的清单中看到该私有仓库。

无论是在仓库页面还是已加星标仓库的列表中,只要看到仓库的 Star(星标)或 Starred(已加星标)下拉菜单,您都可以将仓库添加到已有或新建的清单中。

Screenshot of a repository page. The "Star" dropdown menu is expanded, with a list options highlighted with a dark orange outline.

创建清单

  1. 在任意页面的右上角,点击您的头像,然后点击 Your stars(您的星标)。

    Screenshot of the profile menu for octocat. The "Your stars" option is highlighted with an orange outline.

  2. 在 “Lists” 旁边,点击 Create list(创建清单)。

  3. 为您的清单输入名称和描述,然后点击 Create(创建)。

向清单添加仓库

  1. 在任意页面的右上角,点击您的头像,然后点击 Your stars(您的星标)。

    Screenshot of the profile menu for octocat. The "Your stars" option is highlighted with an orange outline.

  2. 在搜索栏中输入,找到您想要添加到清单的仓库。

  3. 在您想要添加的仓库旁,使用 Starred(已加星标)下拉菜单并选择您的清单。

    Screenshot of a list of repositories on the "Stars" page. Next to a repository, under the "Starred" button, a dropdown menu is outlined in orange.

从清单中移除仓库

  1. 在任意页面的右上角,点击您的头像,然后点击 Your stars(您的星标)。

    Screenshot of the profile menu for octocat. The "Your stars" option is highlighted with an orange outline.

  2. 选择您的清单。

  3. 在您想要移除的仓库旁,使用 Starred(已加星标)下拉菜单并取消选中您的清单。

    Screenshot of a list of repositories on the "Stars" page. Next to a repository, under the "Starred" button, a dropdown menu is outlined in orange.

编辑清单名称或描述

  1. 在任意页面的右上角,点击您的头像,然后点击 Your stars(您的星标)。

    Screenshot of the profile menu for octocat. The "Your stars" option is highlighted with an orange outline.

  2. 选择您想要编辑的清单。

  3. 点击 Edit list(编辑清单)。

  4. 更新名称或描述后,点击 Save list(保存清单)。

删除清单

  1. 在任意页面的右上角,点击您的头像,然后点击 Your stars(您的星标)。

    Screenshot of the profile menu for octocat. The "Your stars" option is highlighted with an orange outline.

  2. 选择您想要删除的清单。

  3. 点击 Delete list(删除清单)。

  4. 确认时,点击 Delete(删除)。

搜索已加星标的仓库和主题

您可以在星标页面的搜索栏中快速查找已加星标的仓库和主题。

  1. 在任意页面的右上角,点击您的头像,然后点击 Your stars(您的星标)。

    Screenshot of the profile menu for octocat. The "Your stars" option is highlighted with an orange outline.

  2. 使用搜索栏按名称查找已加星标的仓库或主题。

搜索栏仅根据仓库或主题的名称进行搜索,而不考虑其他条件(如仓库大小或最近更新时间)。

在星标页面上对星标进行排序和过滤

您可以使用排序或过滤功能自定义星标页面上已加星标仓库和主题的显示方式。

  1. 在任意页面的右上角,点击您的头像,然后点击 Your stars(您的星标)。

    Screenshot of the profile menu for octocat. The "Your stars" option is highlighted with an orange outline.

  2. 要对星标进行排序,请选择 Sort by:(排序方式)下拉菜单,然后选择 Recently starred(最近加星),Recently active(最近活跃)或 Most stars(星标最多)。

  3. 要按语言过滤星标列表,请在 Language(语言)下拉菜单中点击所需的语言。

  4. 要按仓库类型过滤星标列表,请在 Type:(类型)下拉菜单中点击所需的选项。

延伸阅读

© . This site is unofficial and not affiliated with GitHub, Inc.