-
-
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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