Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RichardBronosky/25455115a9180cc23c7d64b4729cb99a to your computer and use it in GitHub Desktop.
Save RichardBronosky/25455115a9180cc23c7d64b4729cb99a to your computer and use it in GitHub Desktop.
Always clone via SSH regardless of using an HTTPS URL.
# Use SSH instead of HTTPS for github.com
[url "ssh://git@github.com/RichardBronosky"]
# This one allows you to clone from the URL in your browser address bar
insteadOf = https://github.com/RichardBronosky
# Use SSH instead of HTTPS for gist.github.com
# No, gist URLs do not indluce the username.
[url "ssh://git@gist.github.com/"]
# This one allows you to clone from the URL in your browser address bar. Example URL:
# https://gist.github.com/RichardBronosky/9db43c0e374933c82401fb2be85494aa
# Yes, the trailing slash is needed for gists but not for regular repos.
insteadOf = https://gist.github.com/RichardBronosky/
# This one allows you to use the "Clone via HTTPS" button. Example URL:
# https://gist.github.com/9db43c0e374933c82401fb2be85494aa.git
insteadOf = https://gist.github.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment