Skip to content

Instantly share code, notes, and snippets.

@mmorton
Last active May 5, 2018 00:04
Show Gist options
  • Save mmorton/4998e501d14b1d8745a7b9e2c1b91bc3 to your computer and use it in GitHub Desktop.
Save mmorton/4998e501d14b1d8745a7b9e2c1b91bc3 to your computer and use it in GitHub Desktop.
Yarn With Private GitHub Repositories
  1. Open Shell (Use Git Bash on Windows)
  2. Run ssh-keyscan -H github.com >> ~/.ssh/known_hosts.
  3. Create an SSH key with ssh-keygen -t rsa.
  4. Add SSH pub key to GitHub.
  5. Add the following to ~/.ssh/config:
    Host github.com
      User git
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment