Source: https://stackoverflow.com/a/28252200
Depending if you deal with a User/Organization (UO) site or a Project site (P), do :
- from your working folder
git init git remote add origin [email protected]:userName/userName.github.io.git(UO) orgit remote add origin [email protected]:userName/repositoryName.git(P)jekyll new .creates your code base- in _config.yml, set the baseurl parameter to
baseurl: ''(UO) orbaseurl: '/repositoryName'(P) - in .gitignore add _site, it will be versioned in the other branch
jekyll buildwill create the destination folder and build site.