This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2020-05-23. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Article version: Enterprise Server 2.17

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