Skip to content

Instantly share code, notes, and snippets.

@jage
Created July 16, 2013 17:12
Show Gist options
  • Save jage/6010636 to your computer and use it in GitHub Desktop.
Save jage/6010636 to your computer and use it in GitHub Desktop.
Find gitlab repositories
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
@jage
Copy link
Author

jage commented Jul 16, 2013

To set a new remote: git remote set-url origin git@github.com:<org>/<repo>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment