Git and GitHub

What is Git and GitHub

Git is a free and open source distributed version control system and use to managed the versioning of any text-based project.

GitHub is a web-based hosting service for git repositories. Git combined GitHub allows teams of people to working on the same project while tracking changes and coordinating the work being done.

Creating a GitHub Account

To create GitHub Account, go to https://github.com and provide a username, an email address, and password. It is possible to use GitHub Account for other services as well like CodePen and Scrimba.

GitHub Account

Please use your official Algonquin College email address when signing up.

Installing Git for Windows

Complete the following steps to install the latest version of Git on Windows:

  1. Go to https://git-scm.com/downloads
  2. Download the software for Windows
  3. Install Git choosing all of the default settings

After the installation is complete, find and open Git Bash from the Windows Start menu, and type git --version. If a version number appears, Git has been successfully installed.

Before you can start using Git for the first time, you need to configure it. Run each of the following lines in the Git Bash. You will only need to do this once.

# sets up Git with your name
git config --global user.name "<Your-Full-Name>"

# sets up Git with your email (use your Algonquin Email)
git config --global user.email "<your-email-address>"

# makes sure that Git output is colored
git config --global color.ui auto

This video was created by Atlassian

Installing Git for macOS

Git is commonly installed on MacOS by default, but it is good idea to reinstall git, to ensure we are running the latest version.

  1. Go to https://git-scm.com/downloads
  2. Download the software for Mac
  3. Install Git choosing all the default options

After the installation is complete, open the Terminal, it can be found in /Applications/Utilities/Terminal.app, and type git --version. If a version number appears, Git has been successfully installed.

Before you can start using Git for the first time, you need to configure it. Run each of the following lines in the Terminal. You will only need to do this once.

# sets up Git with your name
git config --global user.name "<Your-Full-Name>"

# sets up Git with your email (use your Algonquin Email)
git config --global user.email "<your-email-address>"

# makes sure that Git output is colored
git config --global color.ui auto

This video was created by Atlassian

Using Git and GitHub

We will NOT be spending a lot of time learning Git in this class, but we will be using it. Specifically, for the individual assignments and the group project found on GitHub Classroom. More information how to use Git and GitHub Classroom can be found in the GitHub Classroom page.

If you find yourself overwhelmed with the Git commands and terminology, review following resources on Git.