scripts/misc/git-http-to-git

4 lines
130 B
Plaintext
Raw Normal View History

2020-07-29 12:58:50 +00:00
#!/bin/zsh
remote=${1:-origin}
git remote set-url $remote $(git remote get-url $remote | sed -e 's#https?://\([^/]*\)/#git@\1:#')