Workflow and Github

Mon, Sep 12, 2016

Creating a GitHub Page

Github Desktop

Some Git Terms Explained

  • master - This is the main branch of your repository. It is the default branch if you don’t create any others.
  • clone - This is a way to copy a repository from a remote location (i.e. to your local computer.
  • commit - To set a save point with a message on your local computer. Only when you sync is it reflected on the remote repository.
  • push or sync - To submit your latest commits to the remote responsitory, and sync any changes on the remote back to your computer.
  • head - This is a reference to the node the repository currently points. Think of head as the latest node by default.
  • branch - This allows you to create a new version of your repository separate from the master branch. As you switch back and forth, the files on your computer are automatically modified to reflect those changes.
  • fork - A way to split off a separate version of a repository. You can fork anyone’s code on to make your own version of their code.
  • pull request - A request that is made to merge changes that you made on either a fork or branch, into the main code (master branch, or repo’s origin).
  • merge conflict - When the same area of a file differs, or is in conflict with another change. It will add some notations of where the conflicts are, and you have to resolve these before proceeding.

Setting up a GitHub repository and Page

  1. Create a GitHub account with your e-mail address. Make sure you confirm your e-mail address to complete the account setup.
  2. Download the GitHub Desktop Client (Mac or PC), which will allow you to perform Git functions without using the command line.
  3. After downloading the above software, you need to authenticate it with your GitHub account in order to allow you to access to your repositories. The GitHub site also contains instructions on how to authenticate your account.
  4. Configure your local Git e-mail settings to be used when checking out repositories. (Note: this e-mail address can be seen publicly on If you don’t want to use a public e-mail, you can use <username> Instructions are also listed on the GitHub page.
  5. Next, to create a GitHub page, create a new repository with the name where username is the username you used to sign up for GitHub.
  6. Clone the repository to your computer. Once you setup GitHub Desktop, this is as simple as clicking the plus button and searching for the repository you made online, and making a copy of it on your desktop.
  7. Follow the instructions below for loading a Bootstrap page as your first website.

Loading BootStrap into your GitHub page

Download this sample Bootstrap portfolio I made, and save it into the repository folder on your desktop.

Periodically, make sure you commit your work into your repository.