mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
13 lines
308 B
Bash
Executable file
13 lines
308 B
Bash
Executable file
#!/usr/bin/env 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'
|