In the interest of consolidating my github accounts, I had them transfer the Dynamo repository to another account. Then I deleted that account. Whoops. For those of you who have visited the Dynamo site in the last couple of days, you’re welcome. It was my pleasure to entertain you with github’s 404 page. For those of you interested in the gory details of how I restored the repository, read on.
Luckily, git makes it really easy to restore a repository. I had to create a new repository on github. Like a newborn child, this repository came into the world with nothing, not even a README. Following github’s instructions for initiating a new repository on my machine, I stubbed out a local repository that was also empty, committed once, and pushed to github.Â If you had visited Dynamo on github during this brief interlude you would have found a repository with only a README file, and you would have thought, “That Ian sure is brilliant. He figured out how to make Dynamo fit inside this one little text file.” Perhaps if I were that smart, I wouldn’t have deleted this entire project in the first place. I copied over the contents of the old repo, including the .git directory in the new local directory and did “git reset –hard HEAD”. Now, as far as git is concerned, my new repository has all of the tragic history of my old repository. All that was left to do was push. Something about pushing this reset repo to the remote repository made git angry however. Stumbling blindly forward, as is my wont, I then did “git push –force origin master” which is just as scary as it sounds. Presto! All of my files, branches, and my commit history are back on github.