Setup Git

Git will be used to issue commands to commit, and push code changes to our GitHub repository.

MacOS

Install Homebrew:

The fastest way to install packages onto MacOS is with Homebrew, if you already have Homebrew installed you can skip this step

To install Brew, in a terminal window enter

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install GIT:

In a terminal window enter:

brew install git

Linux

Installation of Git can be done with the built in package managers on most all linux distributions - to cover common use cases the steps below are for Debian and CentOS

Debian, Ubuntu Linux, Raspberry Pi OS (apt)

apt-get install git

Fedora, CentOS, Red Hat Enterprise Linux (dnf)

dnf install git

Windows

Installation of Git can be done with powershell winget package manager. Open PowerShell and enter the following installation command:

winget install -e --id Git.Git

If prompted enter Y to approve installation

Once installation is complete you must add Git CLI installation to the Windows PATH:

$Env:PATH += ";C:\Program Files\Git\bin"

Git Setup Complete!

You have successfully setup GitHub CLI! Lets Get Started with the Labs!