Last active
February 18, 2024 10:14
-
-
Save iilei/a724dcfe15dc1e6639eef5e69d813e57 to your computer and use it in GitHub Desktop.
get git repo https uri
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 remote --v | grep "origin" | head -1 | sed -r 's:.*\s+(\S+)\s+.*$:\1:g' | sed -r 's:git@([^/]+)\:(.*\.git):https\://\1/\2:g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment