Skip to content

Instantly share code, notes, and snippets.

@ccannon94
Last active August 18, 2017 04:03
Show Gist options
  • Save ccannon94/35ab3b6b7d8df79c76eb338fe0c8eabb to your computer and use it in GitHub Desktop.
Save ccannon94/35ab3b6b7d8df79c76eb338fe0c8eabb to your computer and use it in GitHub Desktop.
Installation Instructions for Git on Windows, MacOS, or Ubuntu Linux

Installing Git

The first step to working with code on your personal computer is to install git for your operating system. Git is a command-line utility that is available for every major operating system. The steps vary greatly by operating system, so look for the instructions best fit for your machine.

Installing Git for Windows

  • Download the git installer from the git website.

  • All of the default settings are acceptable for installing git.

Installing Git for MacOS

  • Note, this is the recommended method of installing git on MacOS. It is not the only method. If Xcode is installed on your mac with developer command line tools, you may already have git.

  • First, install 'homebrew', this is a package similar to 'apt' for Debian Linux. It makes installing trusted software packages much easier. Install it by executing the following command in the terminal:

    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    brew doctor
    
  • Then, install git by running 'brew install git'

Installing Git for Ubuntu Linux

  • This method will work for most Debian distributions of Linux.

  • Run the following commands in the linux terminal:

    sudo apt-get update

    sudo apt-get upgrade

    sudo apt-get install git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment