AI Workshop: learn to build apps with AI →
Git: Installing Git

Join the AI Workshop and learn to build real-world apps with AI. A hands-on, practical program to level up your skills.


Git can be installed on any operating system.

Here is a basic installation guide.

NOTE: I’ll have a better approach in the next unit, where we’ll install GitHub Desktop after creating a GitHub account and setting up credentials. I think it’s easier that way, 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 two 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