Home > Software engineering >  How to remove sensitive information from issue history on github
How to remove sensitive information from issue history on github

Time:10-29

I am using a public GitHub repository to collaborate on a project. Because I am an idiot, I created an issue with some sensitive information that I can't share.

Because I need the overall issue information, and the sensitive information could be withdrawal with no meaningful effects, is there a way to remove it from the issue without the necessity to delete it?

Most of the answers I've found talk about removing information from files and their commits, like this one and this one

CodePudding user response:

While it is possible to edit an issue on GitHub, a history of edits is kept and remains public, so do not use this to remove sensitive information.

If (as the OP stated) it's possible to "edit" out the sensitive information from the original issue, make a copy before deleting it, then publish the edited one as a new issue (with clarification).

As a final note, if any of the sensitive information includes passwords, keys, or anything that can be changed/revoked, do so ASAP. And I don't know what the situation is, but for any immutable information try contacting whoever might be able to handle it.

CodePudding user response:

To switch between commit's or different versions of the project We use the 'git checkout ...' command . Refer to the last commit, which is okay, and mark the main project and the main branch ...

  • Related