Jekyll installation (one time)
Before we can make any changes, Jekyll needs to be installed. See instructions here: Jekyll installation
Git workflow
Git installation (one time)
If git is not installed, install it by following instructions here: Git installation
Git repo setup (one time)
Typical commands for git repo setup are:
- git init –> To initialise local repo
- git clone –> To clone from this repo to local repo
Git commit and push (recurring)
Typical git commands to commit and push are:
- git add –> To add changed files to local repo
- git commit –> To commit changes to local repo
- git push –> To push changes from local repo to github repo
Git cheat sheet
Useful list of common github commands: Git cheat sheet
Jekyll local website hosting
Before committing changes, it is useful to host the website locally and ensure the changes made are rendered properly. To do this, from the website directory, execute:
foo@bar <website-dir> % bundle exec jekyll serve
Changes would then be visible at the address http://localhost:4000