GitHub and SSH
Understand how to check for Git installation and install it if needed. Learn to generate SSH key pairs on your machine, securely store them with ssh-agent, and add your public SSH key to GitHub for secure repository access. This setup enables command-line interactions with GitHub repositories essential for API development projects.
We'll cover the following...
Git
We use Git as the source control manager for all the projects in the course. It’s first mentioned in Understanding HTTP, REST, and APIs, but almost every chapter after that has some Git commands.
Checking for Git
You may already have Git installed on your machine. You can check this by typing the following on the command line:
git --version
If Git is installed, you should see something like the following:
git version 2.25.1
The exact version isn’t too important, but it’s advised that you use version 2 or higher when working with the examples from this course.
Installing Git
If you need to install Git, your best bet is to visit the official download page (https://git-scm.com/downloads), as shown in the following screenshot. Once you get there, you should see a suggested download on the right. You can also click on the operating system links to download the latest releases. Depending on the operating system you select, you’ll see a list of commands for downloading the release, or in some cases the ...