Prerequisite

Before we start, check which Git is installed on your system.

Run this command to verify your git installation:

Find system git version
git --version

My local git version is 2.43.2.

git version 2.43.2

Follow the official Git installation instructions if your Git installation is significantly older (or you don’t have git installed).

I used the Homebrew installation instructions for macOS.

Install git with Homebrew package manager
brew install git

With git installed and updated, we have all we need!


Assignment

Run the git command without arguments. Read the summary of available sub commands. We will be covering the most important of these commands in this guide.