Created
September 18, 2012 14:46
-
-
Save cironunes/3743520 to your computer and use it in GitHub Desktop.
Working in git-extras: git gh-pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo 'setting up gh-pages' | |
echo '-------------------' | |
echo 'Tell me your github account username: ' | |
read username | |
echo 'Now, tell me your repository name: ' | |
read repository | |
git stash \ | |
&& git checkout -b 'gh-pages' \ | |
&& echo 'My Page' > index.html \ | |
&& git add . \ | |
&& git commit -a -m 'Initial commit' \ | |
&& git remote add origin https://github.com/"$username"/"$repository".git \ | |
&& git push -u origin gh-pages \ | |
&& echo 'Complete' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment