I want to create the gh-pages
branch from the Github API. Is there an easy way to do this?
If not, how would I create an orphan branch from the Github API?
It is possible to do this by:
You can find some CoffeeScript example code for how to do that from https://github.com/noflo/noflo-github/blob/master/components/CreateOrphanBranch.coffee#L31
Here is one such branch created this way: https://github.com/the-domains/example.net/tree/branch_1403616324001
Update: this method only works if the git repository has previous orphan branches. If it is a newly-created repo created via GitHub's API using the auto_init
option it won't work. I've contacted GitHub about this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With