Skip to content

Instantly share code, notes, and snippets.

@thapabishwa
Last active September 10, 2022 02:16
Show Gist options
  • Save thapabishwa/e7ae687539a394a0b0a30ed4fad1bf6b to your computer and use it in GitHub Desktop.
Save thapabishwa/e7ae687539a394a0b0a30ed4fad1bf6b to your computer and use it in GitHub Desktop.
git config --global --add url."git@github.com:".insteadOf "https://github.com/"
@thapabishwa
Copy link
Author

This forces all HTTPS remote origins to use ssh instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment