Skip to content

Instantly share code, notes, and snippets.

@midzer
Created April 12, 2020 19:35
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 midzer/3ceba8ad7d956e02d9e920b121d8d059 to your computer and use it in GitHub Desktop.
Save midzer/3ceba8ad7d956e02d9e920b121d8d059 to your computer and use it in GitHub Desktop.
GitHub origin HTTPS to SSH
git remote set-url origin $(git remote get-url origin | sed 's/https:\/\/github.com\//git@github.com:/')
@sashagra
Copy link

is it bash command?

@midzer
Copy link
Author

midzer commented Sep 21, 2020

Yes, it should be a POSIX-compatible shell command

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