Created
February 14, 2021 06:49
-
-
Save GaurangTandon/ba0c13b8cc9b7509b45ed17626277214 to your computer and use it in GitHub Desktop.
Bash command to allow cloning via SSH with HTTPS URL
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
# place this in your aliases file | |
ghcl() { | |
prefix=$(echo -n $1 | sed 's|https://github.com/|[email protected]:|') | |
git clone "$prefix.git" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment