👋 We've unified all of GitHub's product documentation in one place! Check out the content for REST API, GraphQL API, and Developers. Learn more on the GitHub blog.
Article version: Enterprise Server 2.19

Tracking changes in a comment

You can view the edit history of a comment or delete sensitive information from the edit history of a comment.

In this article

Viewing a comment's edit history details

Anyone with read access to a repository can view a comment's edit history.

  1. Navigate to the comment you'd like to view the edit history for.

  2. At the top of the comment, click edited to open the edit history.

    Note: If you don't see the edited option, then the comment doesn't have an edit history.

  3. To view the details of a specific change, select it from the list of edits.

    View edit details for comment

Deleting sensitive information from a comment's history

Comment authors and anyone with write access to a repository can delete sensitive information from a comment's edit history.

When you delete sensitive information from the comment's edit history, the person who made the edit and when they made the edit is still visible in the comment history but the content of the edit is no longer available.

  1. Navigate to the comment where you would like to delete sensitive information from the edit history.

  2. At the top of the comment, click edited to open the edit history.

    Note: If you don't see the edited option, then the comment doesn't have an edit history.

  3. To view the details of a specific change, select it from the list of edits.

    View edit details for comment

  4. In the top right of the edit history window, click Options. Then click Delete revision from history to delete the diff that shows the content being added.

    Delete comment edit details

  5. To confirm deletion, click OK.

Further reading

Ask a human

Can't find what you're looking for?

Contact us