Last active
March 10, 2016 22:25
-
-
Save jehna/53b67dc53bfe1e3e010f to your computer and use it in GitHub Desktop.
Check which directories have GIT repository and at least one remote in them
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
ls -d */ | xargs -I {} echo "echo -n "{} ... "; cd \"{}\"; test -d .git && (git remote | head -n 1 | grep . || echo NO REMOTE) || echo NO GIT; cd ..;" | bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And you can add
| grep NO | less
to see a quick glance of directories that you should add to git