How do I undo deleting a github wiki page?

后端 未结 1 1736
梦毁少年i
梦毁少年i 2021-02-04 13:50

I deleted a page on a github repo\'s wiki.

Clicking on the link to the file now brings me to a new edit screen. I thought this might be in my fork of the repo, but foll

相关标签:
1条回答
  • 2021-02-04 14:39

    You can clone the wiki repo of your project, and restore that page locally.

    git clone https://myusername@github.com/myusername/foobar.wiki.git
    git checkout $(git rev-list -n 1 HEAD -- yourPage)^ -- yourPage
    

    Then you push back to the wiki repo on GitHub: that should allow it to display your page again.

    0 讨论(0)
提交回复
热议问题