Last active
September 23, 2015 11:18
-
-
Save jadaradix/5a9be1bf7e7e101be8dd to your computer and use it in GitHub Desktop.
Renaming a GitHub organisation with a folder of repos referencing the old remote.
This file contains hidden or 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
for i in $(/usr/bin/find $(pwd) -maxdepth 1 -type d); do | |
if [ $(pwd) != $i ] | |
then | |
cd "${i##*/}"; | |
git remote set-url origin "[email protected]:OrganisationName/${i##*/}.git" | |
git remote -v; | |
cd ..; | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment