Instantly share code, notes, and snippets.
CreatedApril 12, 2020 19:35
Save midzer/3ceba8ad7d956e02d9e920b121d8d059 to your computer and use it in GitHub Desktop.
GitHub origin HTTPS to SSH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
git remote set-url origin $(git remote get-url origin | sed 's/https:\/\/github.com\//git@github.com:/') |
sashagra commentedSep 20, 2020
is it bash command?
Yes, it should be a POSIX-compatible shell command
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment