April 03, 2012
When I first started using Octopress I forked the repository on Github giving me my own repository called “octopress”. Ever since I’ve wanted to have it named after my website since that is what the repository really contains. Turns out renaming a Github repository is simple.
First navigate to the “Admin” page for the repository you wish to rename. Change the Repository Name and click on the Rename button. Github will present you with a warning dialog. You should pay attention to this if you are renaming a repository shared by multiple people. In my case I’m the only committer and therefore I was able to ignore the warning.
Next you need to drop and re-add the remote on your local copy. (You could, I suppose, remove the local copy entirely and re-clone the repository. The drop and re-add is faster.)
I made sure I had committed and pushed all changes to Github before starting this process, but this wasn’t necessary – just me being cautious.