⇦ Back

This page is the first part of an introduction to Git:

  1. Installation
  2. Quickstart
  3. Cheat Sheet
  4. Gitignore

Installing Git

To install Git on:

$ sudo apt-get install git
  • macOS:
    • Install Xcode Command Line Tools, which will install Git at the same time
    • If you run git on the terminal and you don’t have it installed, it will prompt you to install it

Double check that you have Git installed (and see what version you have at the same time) by running:

$ git --version

This should return the version number, eg git version 2.34.1. See the full documentation for installing Git here.

GUIs

Many people prefer to use Git via a graphical user interface (GUI) instead of via the terminal. Some options that you can install include:

  • GitKraken (https://www.gitkraken.com/): free for local and public cloud repositories and the paid version allows for private cloud repositories as well. Available on Windows, macOS and Linux. See a usage guide for GitKraken here.
  • Sublime Merge (https://www.sublimemerge.com/): free for an unlimited amount of time although you should buy a license “for continued use” (ie it’s ‘nagware’; it will nag you to buy a license but not stop you if you don’t). Available on Windows, macOS and Linux.
  • Sourcetree (https://www.sourcetreeapp.com/): free. Available on Windows and macOS.

Next: create a new repository by following a quickstart guide

⇦ Back