Member-only story

Learning The Essential Git Commands

What is actually happening with Git?

Steven Curtis
6 min readAug 23, 2019

Version control can be quite tricky to understand. A few diagrams and a bit of explanation can help us all!

The step-by-step instructions below refer to using a Mac terminal to use Git.

Prerequisites:

  • Some basic understanding of Git

Terminology

Git: Git is a distributed version-control system for tracking changes in source code during software development

Moving from the repository to the working directory

A walk through some git commands

Create a local repository in your documents

The following commands are written using Terminal on a Mac, and are accessible by a Command⌘-Space key combination and typing “Terminal” into the spotlight window.

Once opened, the following commands can be typed into the black Terminal window:

$ cd ~/documents

$ mkdir git

$ cd git

$ git init

--

--

No responses yet