Skip to content

Install Git

Git keeps the history of a project's files, and copies a project onto your computer. You use it in the next lesson to download NanoClaw.

You also install jq here, a small tool that reads the answers that websites send back. NanoClaw's setup uses it to check your Telegram bot.

Install it

Click the name of your computer's system to open its section.

macOS

Check if it's already installed. In Terminal, run:

bash
git --version
jq --version
  • If you see two version numbers, you already have both, and there is nothing to install: skip the rest of this section.
  • If either one says command not found, do the step below.

Install it. In the terminal, install Git and jq with Homebrew:

bash
brew install git jq

If you already have one of them, Homebrew says so and does nothing. That is safe to run.

Check that it works. In the terminal, run:

bash
git --version
jq --version

You should see two lines, like git version 2.55.0 and jq-1.7.1. Your numbers may be different.

Windows

Git goes inside Ubuntu, not on Windows itself. You don't need "Git for Windows".

Check if it's already installed. In the Ubuntu terminal, run:

bash
git --version
jq --version
  • If you see two version numbers, you already have both, and there is nothing to install: skip the rest of this section.
  • Git is usually there already, because the Homebrew page installed it. jq is usually missing, so you probably still need the step below.

Install it. In the Ubuntu terminal, run:

bash
sudo apt install -y jq

Type your Ubuntu password if it asks. Ubuntu keeps its own copy of Git up to date, so this is the one place the course uses apt instead of Homebrew.

Check that it works. In the Ubuntu terminal, run:

bash
git --version
jq --version

You should see two lines, like git version 2.55.0 and jq-1.7.1. Your numbers may be different.

Linux

Check if it's already installed. In the terminal, run:

bash
git --version
jq --version
  • If you see two version numbers, you already have both, and there is nothing to install: skip the rest of this section.
  • Git is usually there already, because the Homebrew page installed it. jq is usually missing, so you probably still need the step below.

Install it. In the terminal, run this on Ubuntu or Debian:

bash
sudo apt install -y jq

On Fedora, run this instead:

bash
sudo dnf install -y jq

Type your password if it asks. Your system keeps its own copy of Git up to date, so this is the one place the course uses the system's own installer instead of Homebrew.

Check that it works. In the terminal, run:

bash
git --version
jq --version

You should see two lines, like git version 2.55.0 and jq-1.7.1. Your numbers may be different.

Next

Git is ready. Next, install Docker.

Open-source course materials by Aijutsu, free for self-learning. Terms of Use