Skip to content

Instantly share code, notes, and snippets.

@patoi
Created May 20, 2016 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patoi/9e82ef24a633290e978228775ee8abcd to your computer and use it in GitHub Desktop.
Save patoi/9e82ef24a633290e978228775ee8abcd to your computer and use it in GitHub Desktop.
echo "Type your email, followed by [ENTER]:"
read email
find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c "cd '{}' && git config user.email $email" \;
@patoi
Copy link
Author

patoi commented May 20, 2016

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" ;

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