Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make GitHub pages use the master branch?

I have a static website using Jekyll hosted on GitHub. The problem is, I don't really need the master branch, as the only thing the repository contains is the website.

This way I have to git checkout gh-pages, then git merge master, and then do git push origin gh-pages.

Is there any simple way, where I could get rid of the gh-pages branch and push directly from master?

like image 993
Jakub Arnold Avatar asked Dec 04 '11 03:12

Jakub Arnold


1 Answers

The problem is, I don't really need the master branch, as the only thing the repository contains is the website.

Is there any simple way, where I could get rid of the gh-pages branch and push directly from master?

In your own words, you don't need master. Delete it. Work in gh-pages.

like image 124
Ryan Stewart Avatar answered Oct 04 '22 20:10

Ryan Stewart