GitHub Essential Setup - RichardForshaw/dev-tools-blog GitHub Wiki

GitHub Essential Setup

Whenever you set up in a new machine

You will need to set the GitHub environments and SSH keys up again

GitHub Globals

git config --global user.name "YOUR NAME"

git config --global user.email "YOUR EMAIL ADDRESS"

GitHub SSH

On a new computer, you will need to create new SSH keys... OR do the following:

  1. Go into ~/.ssh
  2. Copy your private key contents into id_rsa. Make sure you get your private key from a safe place!
  3. Set the id_rsa permissions to 600
  4. Copy your public key contents into id_rsa.pub. (not sure if this step is actually necessary if we've done the private key bit)
  5. Set the id_rsa.pub permissions to 644

NOTE: If you intend to use SSH, please clone the repository with SSH!!! You can get into very tricky problems if you clone with https and then try to access it with ssh...