How to install Jekyll on Ubuntu 16.04

Jekyll is a static site generator with a templating system that can be adapted for many types of websites, including blogs. It can be run on a server, or run locally and the generated files uploaded to a server. It is the default software used by Github Pages.
Installing Jekyll package on Ubuntu 16.04 is as easy as running the following command on terminal:
sudo apt-get install jekyll git gitg
jekyll new my-awesome-site
cd my-awesome-site
jekyll serve
=> Now browse to http://localhost:4000
Clone the repository
Go to the folder where you want to store your project, and clone the new repository:
git clone https://github.com/username/username.github.io
Push it
Enter the project folder and add, commit, and push your changes:
git add --all
git commit -m "Initial commit"
git push -u origin master