Skip to content

Instantly share code, notes, and snippets.

@jredh
Created July 23, 2020 14:44
Show Gist options
  • Save jredh/d8e39f011780cb8defa428f1b7ecb9bd to your computer and use it in GitHub Desktop.
Save jredh/d8e39f011780cb8defa428f1b7ecb9bd to your computer and use it in GitHub Desktop.
How to use SSH for Github instead of Username/Password
#!/bin/sh
git config --global url.ssh://git@github.com/.insteadOf https://github.com/
@jredh
Copy link
Author

jredh commented Dec 15, 2020

(Run the command, don't add this to ~/.gitconfig)

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