0

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 withdrawn 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.

riQQ
  • 6,571
  • 4
  • 32
  • 48

3 Answers3

0

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.

The Otterlord
  • 1,104
  • 7
  • 19
0
  1. Click on edited in the top bar of the edited issue
  2. Click on the revision you want to remove in the popup menu
  3. Click on Options
  4. Click on Delete revision from history

Note

The most recent revision cannot be deleted.
Need to delete sensitive information? Go to the specific edit where the information was added.

screenshot issue comment with popup menu



screenshot revision options

riQQ
  • 6,571
  • 4
  • 32
  • 48
-1

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 ...

Dharman
  • 26,923
  • 21
  • 73
  • 125
  • 1
    Hello @AliAkbar_Zohour, thanks for your help, but I don't think your answer is related to the topic. I'm talking about issues and not about changing branches or pull/push processes. Sorry if misunderstood your point. – Gabriel Braico Dornas Oct 28 '21 at 14:16