Created
July 16, 2013 17:12
-
-
Save jage/6010636 to your computer and use it in GitHub Desktop.
Find gitlab repositories
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
find . -name '.git' -type d | while read git_path; do | |
( | |
cd `dirname $git_path` | |
(git remote -v|grep -q gitlab) && echo "`dirname $git_path` is still on gitlab" | |
) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To set a new remote:
git remote set-url origin [email protected]:<org>/<repo>