How do I delete a github wiki page?

I deleted the wiki page for github repo.

By clicking on the link in the file, you get to a new editing screen. I thought it might be in my repo plugin, but after linking incognito on chrome it gives me an error that I donโ€™t have permission to edit this file (apparently because I'm trying to create it and I didnโ€™t go into incognito system).

I know that you can undo changes to files, but how can I delete file deletion in github wiki repositories?

+6
source share
1 answer

You can clone your project's wiki repo and restore this page locally .

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

Then you return to the wiki repo on GitHub: this should allow it to display your page again.

+9
source

Source: https://habr.com/ru/post/972367/


All Articles