So I didn't have any problems updating my website or adding a website thank goodness! I think I'm somehow getting progressively better at Github and I'm not a total complete fail at Github Command Line! WOHO! Anyways, here is my step by step process in creating a new Jekyll website from the command line:
So after I installed Jekyll, I then issued this command in the command line:
jekyll new mysite
. This created my site.After Jekyll created this
mysite/
folder, I needed to create a repository to which I can add files and change files on Github. I usedgit init
to create a new repository.I needed to check the status of my repository to make sure I did not commit it by using the command
git status
. (side note: this git status is super helpful because it has colors in the Git Command Line which helps me automatically know what hasn't been commmitted)I then committed the additions, using
git add .
and then committing usinggit commit -m "Added my blank Jekyll site"
which also added a commit message.I then did
jekyll serve --watch
to see the changes on my local Jekyll server.I renamed the default branch from
master
togh-pages
by using the commandgit branch -m master gh-pages
.After I checked the site to make sure it was okay on my local Jekyll server, I then added my new repository as a remote:
git remote add origin https://github.com/leslieho/mysite
and then I pushed the changes to the site:git push origin gh-pages
After doing all of this, I then updated config.yml file to add the base url information
baseurl: /mysite
and updated the index.html with my contact information.
Here's my screenshot: