This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
| #!/bin/bash | |
| url=http://redefininggod.com | |
| webarchive=https://web.archive.org | |
| wget="wget -e robots=off -nv" | |
| tab="$(printf '\t')" | |
| additional_url=url.list | |
| # Construct listing.txt from url.list | |
| # The list of archived pages, including some wildcard url |
| # Replace any brackets with real values | |
| # Try to ssh in to DREAMHOST (ensure it no longer asks for a PW); you may want to restart Terminal | |
| ssh [user]@[host] | |
| cd ~ | |
| mkdir [mydomain_com].git | |
| cd [mydomain_com].git | |
| git init --bare | |
| vi hooks/post-receive | |
| # Enter the code from the "post-receive" file (in this gist); save + quit |
| var DateTime = function() { | |
| var now = new Date(); | |
| this.year = now.getFullYear(); | |
| this.month = ('00' + now.getMonth()).slice(-2); | |
| var monthEndDate = new Date(this.year, this.month, 0); | |
| this.startDate = this.year + '-' + this.month + '-01'; | |
| this.endDate = this.year + '-' + this.month + '-' + monthEndDate.getDate(); | |
| } | |
| var Profile = function(profileName, tableId) { |