Created
March 18, 2014 21:22
-
-
Save brancz/9629955 to your computer and use it in GitHub Desktop.
I recently wanted to check my config in all my git repositories. Since I keep them all in ~/git I could easily use the following few lines of shell.
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
#!/bin/sh | |
CWD=`pwd` | |
for i in `find . -type d -maxdepth 1`; do | |
cd $i | |
git config user.user | |
git config user.email | |
cd $CWD | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment