I am using jekyll to publish a static site directly on gh-pages branch in Github. The issue I have is that every time I run
$ jekyll --no-auto /Users/khinester/Sites/tzm/
this overwrites the .git directory and I have to recreate this:
$ git init-db
$ git add remote ..
$ git add .
$ git commit -a -m 'message'
$ git branch gh-pages && git checkout gh-pages
etc..
$ git push -f github gh-pages
basically i have the master branch containing the files needed to generate the blog and gh-pages branch which displays the actual blog.
and also note that i have to force push this.
it will be nice to have also be able to version control the updates!
i have read the https://github.com/mojombo/jekyll/wiki/Deployment but this seems has more steps then what i do now.
is there a better way to do this or have i missing something.