File: git-gh-pages

package info (click to toggle)
git-extras 1.7.0-1.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 696 kB
  • sloc: sh: 381; makefile: 52
file content (12 lines) | stat: -rwxr-xr-x 300 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

echo 'setting up gh-pages'
git symbolic-ref HEAD refs/heads/gh-pages \
  && rm .git/index \
  && git clean -fdx \
  && echo 'My Page' > index.html \
  && git add . \
  && git commit -a -m 'Initial commit' \
  && git push -u origin gh-pages \
  && git fetch origin \
  && echo 'complete'