Created
March 23, 2014 21:57
-
-
Save zeroeth/9730513 to your computer and use it in GitHub Desktop.
find all git repos in a folder
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
| #!/bin/bash | |
| # Doesn't work with white-spaced names. | |
| # find . -type d -name .git | xargs -n 1 dirname | |
| # Works with white-space. | |
| find . -type d -name .git -print0 | xargs -0 -n 1 dirname | |
| # TODO fetch all remotes and then list branch sync info similar to https://gist.github.com/zeroeth/8013177 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment