Created
September 19, 2019 13:33
-
-
Save dlespiau/4456f5900bded7cd7d00ba1d04e8851a to your computer and use it in GitHub Desktop.
This file contains 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_ssh_url() { | |
echo $1 | sed -e 's#^https://github.com/#git@github.com:#' | |
} | |
git_http_url() { | |
echo $1 | sed -e 's#^git@github.com:#https://github.com/#' | |
} |
This file contains 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_ssh_url https://github.com/weaveworks/wks-quickstart-firekube.git | |
git@github.com:weaveworks/wks-quickstart-firekube.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment