Step by step instruction
clone Source branch to praveesh4u@github.com
$ git clone -b source git@github.com:praveesh4u/praveesh4u.github.com.git
clone Master branch to praveesh4u@github.com/ _deploy
$ cd praveesh4u@github.com $ git clone git@github.com:praveesh4u/praveesh4u.github.com.git _deploy
If these steps are already done, do the following
$ cd praveesh4u@github.com $ git pull origin source $ cd praveesh4u@github.com/_deploy $ git pull origin master
Next, run
$ gem install bundler $ bundle install $ rake setup_github_pages
When prompted, enter the repository’s address-
git@github.com:praveesh4u/praveesh4u@github.com
Configure git global parameters like username and email address using
$ git config --global user.name "Praveesh A- Linux" $ git config --global user.email "praveesh4u@gmail.com"
- Add/Edit posts
Generate the post
$ rake generate
Preview the generated post using
$ rake preview
To view the preview, go to localhost:4000
Commit the changes
$ git add . $ git commit -a -m "Commit message" $ git pull origin source (to sync with the server) $ git push origin source
Publish the post
$ rake deploy
- Done!!