Ever had the need to create a branch in a repo on Github without wanting (or being able) to access a local repo?
With the aid of [the Github API][1] and [hurl.it][2] this is a piece of cake!
Just follow these steps:
- Open [http://hurl.it/][2]
- Find the revision you want to branch from. Either on Github itself or by doing a GET request from Hurl:
https://api.github.com/repos/<AUTHOR>/<REPO>/git/refs/heads
- Copy the revision hash
- Do a POST request from Hurl to
https://api.github.com/repos///git/refs
with the following as the POST body :