0

I have some documentation on GitHub repo wiki. This wiki, as expected, contains several pages. Each page has its own revision history. For the sake of some cleanup, I would like to remove some specific revision from the history of one page.

Is there any way to do that?

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257
Bakir Jusufbegovic
  • 2,806
  • 4
  • 32
  • 48

1 Answers1

0

Each page has its own revision history.

This isn't exactly true. GitHub wikis are Git repositories, and the revision history of your wiki all lives in a single repository. Each commit probably only touches a single page, though, since that's how the online editor works.

You could clone your wiki, rewrite its history to remove the offending commit (e.g. with git rebase -i), and then --force-with-lease push it back to GitHub.

However, that's a pretty drastic thing to do simply to remove a commit from your wiki's history. Does the revision really offend you that much? It should be invisible to users unless they're deliberately reviewing your wiki's history.

For the sake of some cleanup, I would like to remove some specific revision from the history of one page.

My recommendation is to just leave it where it is.

ChrisGPT was on strike
  • 127,765
  • 105
  • 273
  • 257