Skip to content

Instantly share code, notes, and snippets.

@levlaz
Created July 2, 2019 02:35
Show Gist options
  • Save levlaz/8575f2cf04b6beb8ff22313c64a30920 to your computer and use it in GitHub Desktop.
Save levlaz/8575f2cf04b6beb8ff22313c64a30920 to your computer and use it in GitHub Desktop.
Git Cheat Sheet

Force SSH for Git Checkout

This comes up when you do go get with a private repo; it wants a username/pass instead of using your key.

git config --global url.ssh://git@github.com/.insteadOf https://github.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment