Most of this was taken from the helpful guide on Github’s own webpage. It is incredibly easy to host pages on Github so long as you have a basic working knowledge of version control (I had never used Git before, but I know Mercurial and that was enough). Here are the steps I took.
Steps
-
Create a Github account with username sumedhjoshi
-
Create a repository called sumedhjoshi.github.io
-
On your local machine, clone the git repository you just made:
$ git clone sumedhjoshi.github.io
- Copy the Jekyll directory tree that contains your Jekyll webpage into this folder.
$ cd sumedhjoshi.github.io
$ cp -R /path/to/jekyll/folder .
- Add all the Jekyll files to your repository, and commit and push the changes.
$ git add --all
$ git commit
$ git push
-
Navigate to sumedhjoshi.github.io, Github Pages will automatically generate your webpage and serve it.
-
All future updates can be made locally and pushed with git to sumedhjoshi.github.io and they will take effect immediately!