Created
May 20, 2016 08:26
-
-
Save patoi/9e82ef24a633290e978228775ee8abcd to your computer and use it in GitHub Desktop.
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
echo "Type your email, followed by [ENTER]:" | |
read email | |
find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && git config user.email $email" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Better:
find . -maxdepth 2 -type d ( ! -name . ) -exec bash -c "cd '{}' && git config --remove-section user && git config user.name "YOUR NAME" && git config user.email YOUR_EMAIL" ;