Git is a command-line tool, just like the Boot.dev CLI. Let's install it.
Note that this course requires a relatively recent version of Git – 2.46.0 or later! It's a good idea to keep Git up-to-date, anyway, since new versions often include fixes for bugs and vulnerabilities, new features, and performance improvements.
First, check whether you have Git installed already, and if so, which version. Open a terminal and type:
git version
If you see a version number of at least 2.46.0, you're good to go! Run and submit the CLI tests.
Otherwise, you'll need to install Git. The official docs site offers helpful installation instructions. You can also refer to our hints below, but whatever other distro you may be using, we have faith in you to find a way of installing Git 2.46+.
The following commands are sufficient to get the latest stable version of Git installed on a fresh Ubuntu 22.04 or 24.04 system:
sudo apt update
sudo apt install software-properties-common # enables add-apt-repository command
sudo add-apt-repository ppa:git-core/ppa
sudo apt install git
We recommend using Homebrew to keep Git (and other command-line tools) up-to-date:
brew update
brew install git