Created
August 4, 2009 23:59
-
-
Save gingerhendrix/162386 to your computer and use it in GitHub Desktop.
github pages installed in a project as a blank branch, and a submodule and with a remote used to pull down shared template
This file contains hidden or 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
#Create blank branch | |
git symbolic-ref HEAD refs/heads/gh-pages | |
rm .git/index | |
git clean -fdx | |
touch .gitignore | |
git add .gitignore | |
git commit -m "Initial Commit" | |
#Push to origin | |
git push origin gh-pages | |
#Add as submodule | |
git checkout master | |
git submodule add -b gh-pages #{repo} website | |
git commit -a -m "added website as submodule-link to gh-pages branch" | |
git push | |
#Merge from template | |
cd website | |
git remote add template #{template_repo} | |
git fetch template | |
git merge --squash template/master | |
git commit -m "Merged #{template_repo} master into gh-pages" | |
git push | |
cd .. | |
git add website #Never use trailing slash or it buggers the whole thing up | |
git commit -m "Updated website with jekyll_template" | |
#Hack away | |
#??? | |
#Profit! | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment