Git: Installing Git

Join the AI Workshop to learn more about AI and how it can be applied to web development. Next cohort February 1st, 2026

The AI-first Web Development BOOTCAMP cohort starts February 24th, 2026. 10 weeks of intensive training and hands-on projects.


Git can be installed on any operating system.

Here is a basic installation how-to.

NOTE: I’ll have a better approach in the next unit, where we’ll install GitHub Desktop after creating a GitHub account, figuring out the credentials for you, I think it’s easier. But it’s worth mentioning how to install Git separately, too.

macOS

Using Homebrew, you can run:

brew install git

Windows

Download and install Git for Windows.

Linux

Use the package manager of your distribution to install Git.

For example run this on Ubuntu:

sudo apt update

sudo apt install git

Using this method you have to set your name and email in the terminal using these 2 commands:

git config --global user.name "your name"
git config --global user.email "your@email.com"

Make sure you enter your name and email, not those fake ones!

Lessons in this unit:

0: Introduction
1: ▶︎ Installing Git
2: Initialize a repository
3: Commit changes
4: Branches
5: Push and pull
6: Working with a remote
7: Solving conflicts
8: .gitignore
9: How to add a Git remote
10: How to remove a Git remote
11: How to set GitHub credentials for macOS