There are a few installation requirements on your local machine to version control your website and being able to preview it locally.
You need to have a working Ruby on your system. You can use rbenv to install and manage our Ruby versions.
- To do this, run the following commands in your Terminal:
brew install rbenv ruby-build
- Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile. You can activate it with
- Install Ruby:
rbenv install 2.4.2
rbenv global 2.4.2
This will install Jekyll together with the gems used by Github Pages to build your website.
gem install github-pages
Configurate your account.
git config --global color.ui true
git config --global user.name "YOUR NAME"
git config --global user.email "YOUR@EMAIL.com"Add some ssh keys (avoid password typing)
ssh-keygen -t rsa -C "YOUR@EMAIL.com"
ssh -T email@example.com
Local Git/Github configuration