跳至主要内容

跟踪评论的更改

您可以查看评论的编辑历史,或从评论的编辑历史中删除敏感信息。

查看评论编辑历史详情

任何拥有仓库读取权限的用户都可以查看评论的编辑历史。

  1. 前往您想要查看其编辑历史的评论。

  2. 在评论顶部,点击 已编辑 以打开编辑历史。

    注意

    如果未看到 已编辑 选项,则该评论没有编辑历史。

  3. 要查看特定更改的详情,请从编辑列表中选择它。

    Screenshot of a GitHub comment showing a dropdown menu open to display previous edits of the comment.

从评论历史中删除敏感信息

评论作者及拥有仓库写入权限的任何人都可以从评论的编辑历史中删除敏感信息。

当您从评论的编辑历史中删除敏感信息时,进行编辑的人员及编辑时间仍会在评论历史中显示,但编辑内容将不再可见。

  1. 前往您想要从编辑历史中删除敏感信息的评论。

  2. 在评论顶部,点击 已编辑 以打开编辑历史。

    注意

    如果未看到 已编辑 选项,则该评论没有编辑历史。

  3. 要查看特定更改的详情,请从编辑列表中选择它。

    Screenshot of a GitHub comment showing a dropdown menu open to display previous edits of the comment.

  4. 在编辑历史窗口的右上角,点击 选项。然后点击 从历史中删除修订,以删除显示添加内容的差异。

    Screenshot of the edit history of a comment. The "Options" dropdown menu is expanded. The "Delete revision from history" option is outlined in orange.

  5. 确认删除,请点击 确定

延伸阅读

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