Skip to content

Setting Up GitHub

Before we can start with step 1, we need to set up our GitHub account. We will need to create an SSH key, which will allow us to connect to GitHub without having to enter our username and password every time.

Creating a GitHub Account

To complete this tutorial, you will need to create a GitHub account. Follow the "Sign Up" instructions on the official GitHub website.

It should look something like this:

Image title

GitHub sign-up page

If the sign-up was successful, you should see a page that looks like this:

Image title

GitHub homepage

Creating an SSH Key

An SSH key is a pair of files that are used to authenticate you when you connect to a remote server. It is a very important tool for developers because it allows you to connect to remote servers without having to enter your username and password every time.

To complete this tutorial, you will need to create an SSH key.

To create an SSH key, we follow the instructions on the official Github website for your operating system SSH key generation.

Following these instructions, you will need to run the following command in the terminal:

Generating a New SSH Key

  1. Open the "Git Bash" (Windows) or "Terminal" (Max/Linux) application

  2. Run the following command:

    ssh-keygen -t ed25519 -C "your_email@example.com"
    
  3. Select the default location for the key (default is usually fine)

  4. Type a secure passphrase (none is fine for personal use)

  5. Copy the key to your clipboard

Copying the SSH Key to Your Clipboard

  1. Open the "Git Bash" (Windows) or "Terminal" (Max/Linux) application

  2. Run the following command:

    cat ~/.ssh/id_ed25519.pub
    
    This will print your key in the terminal window

  3. Copy the key to your clipboard (highlight the key and press Ctrl + C)

Adding the SSH Key to Your GitHub Account

Now that we have created an SSH key, we need to add it to our GitHub account.

We do this by opening the "Settings" page on our GitHub account, and then clicking on the "SSH and GPG keys" tab, then, we click on the "New SSH key" button.

Image title

GitHub settings

Image title

SSH and GPH keys

We can then paste our SSH key into the "Key" field, give it a title in the "Title" field, and click "Add SSH Key".

Image title

Adding a new SSH key

Successfully adding the SSH key should look like this:

Image title

SSH key added

This means that we have successfully set up our GitHub account, and we can finally create our first repository!

You Have Successfully Set Up GitHub! 🎉

You can now move to the next session