Skip to content

Instantly share code, notes, and snippets.

@kevinmeredith
Forked from Potherca/README.md
Created December 4, 2015 19:42
Show Gist options
  • Save kevinmeredith/66e4d074ad38e4b120ca to your computer and use it in GitHub Desktop.
Save kevinmeredith/66e4d074ad38e4b120ca to your computer and use it in GitHub Desktop.
Create a branch on Github without access to a local git repo using http://hurl.it/
On http://hurl.it/ using HTTP basic AUTH and the inputs below you can
create a branch on github without having access to a local git repo.
(With "<SHA-TO-BRANCH-FROM>" being one of the latest commit in the repo,
as shown by https://api.github.com/repos/<AUTHOR>/<REPO>/git/refs/heads).
===
URL : https://api.github.com/repos/<AUTHOR>/<REPO>/git/refs
POST BODY :
{
"ref": "refs/heads/test",
"sha": "<SHA-TO-BRANCH-FROM>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment