Skip to content

Instantly share code, notes, and snippets.

@rjeczalik
Created August 26, 2019 16:22
Show Gist options
  • Save rjeczalik/ae762522cb1cce7c9877c83a3fffbed0 to your computer and use it in GitHub Desktop.
Save rjeczalik/ae762522cb1cce7c9877c83a3fffbed0 to your computer and use it in GitHub Desktop.
How to go get private github repository?

How to go get private github repository?

git config --global url."[email protected]:".insteadOf "https://github.com/"
cat >> ~/.ssh/config <<EOF
Host github.com
  Hostname ssh.github.com
  Port 443
EOF
  1. Done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment