Setting Up Git
- Create a GitHub account
- Install Git
- Note Git is already installed on macOS
- Download for Windows
- Make sure you install Git Bash along with your installation, and leave everything else default
- If you’re already using Linux I bet you know what Git is
- For Ubuntu, run
apt-get install git
- For Arch Linux, run
pacman -S git
- Set up SSH tokens
- First, run
ssh-keygen
in the CLI anywhere, and just leave everything default by pressing enter
- Navigate to
~/.ssh/
and open id_rsa.pub
in a text editor
- Note: To do this in Windows without the CLI,
~/.ssh/
corresponds to C:\\Users\\<WhateverYourUserNameIs\\.ssh
and you may need to enable showing hidden files
- Open the file and copy the ssh key listed in this file into your GitHub’s SSH keys here
- If you have multiple machines, you’ll need to do this for each machine (i.e. dual booting or using a VM)