Welcome to the first part of the ServeIT Github tutorial. This will be fast and painless.

What is Git?

Git is version control software. When you have many people working on a project, you need a way to track files. Git helps facilitate many people to work on the same project at the same time.

Why do I need to use it?

At Serve IT, we use Git to manage & deploy our projects. It is easier to type ‘git clone’ and have a bunch of files suddenly appear on your computer, than it would be to copy them manually. It is also be easier to type ‘git push’ than it is to manually use something like FTP to make changes to an application server.

How do I get it set up?

This tutorial is about how to use git effectively, not how to install it on your computer. If you need to install git, start here. Windows Users will need to use their command prompt. Mac and Linux users will use their Terminal.

This tutorial will serve as a basic introduction to Git. This tutorial will not cover Github Desktop. This is a graphic interface for Git. This is a useful tool, but not the purpose of this tutorial.

We will cover:

  1. Cloning, Adding, & Staging files
  2. Committing and Removing files
  3. Setting up remote repositories.
  4. Pushing to repositories

Cheatsheet

For additional help, check out this website.

At this point, you should have git installed on your system. Run this command. You should get some sort of version number back.

git --version

For me, when I run this command, I see ‘git version 1.9.1’ as the output on the terminal. Make sure this command works before proceeding.