Created
March 21, 2018 06:54
-
-
Save radjivF/f817cee8eae66a981171c1060360411d to your computer and use it in GitHub Desktop.
git-reremote
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
#!/bin/sh | |
old=radjivC | |
new=radjivF | |
git remote -v | grep $old | while read name url type; do | |
newurl=`echo $url | sed -e "s/$old/$new/"` | |
git remote set-url $name $newurl | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment