Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I created a wiki page in my project's GitHub repository, for storing some loose notes and links, and GitHub automatically created a wiki page called "Home", containing the text "Welcome to the [repository] wiki!"

There are two problems with that. First, the new "Home" page is completely useless to me. Second, and most importantly: in order to access the page I created, I have to click the "wiki" link from the repository home page, and then the "Pages" tab, and then the link to the actual wiki page I created.

So I decided to move the content to the "Home" wiki page, to make it more easily accessible. Since there doesn't seem to be a "rename" function for GitHub wiki pages, I simply copied the contents of my page to the "Home" page.

Now, how do I delete the original wiki page so it doesn't clutter my repository?

share|improve this question
    
It turns out one can rename pages by simply changing their title in the edit view. This is valid as long as the target page title doesn't exist. Because GitHub automatically creates a useless "Home" page when you create your first wiki page, you have to delete "Home" first and only then move your page to the "Home" title. This should preserve the edit history rather than copy-pasting the contents. –  waldir Dec 19 '12 at 5:18

2 Answers 2

A longer alternative is to checkout the repository for the wiki and manually delete the file containing the page contents using git rm and then checking in the changes back to the wiki repository.

Useful if you can't find the delete button on the web interface, or you are more of the command line user.

share|improve this answer
1  
For clarity, the git wiki is stored in a separate repository, which can be accessed through the "Git access" tab of the wiki. It should be something like git@github.com:<user>/<repo>.wiki.git –  waldir Dec 21 '12 at 17:19
up vote 16 down vote accepted

As mentioned on this thread of the GitHub Google group, repository owners can delete pages from the edit view.

The delete button might be easy to miss, since the buttons from the view mode:

Imgur

...become only slightly different in edit mode:

Imgur

Perhaps GitHub should consider making the interface more obvious (e.g. making the delete button red, or something like that)

share|improve this answer
    
Yeah, I sure missed it. Thanks! –  b01 Aug 12 '13 at 18:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.