Created
November 2, 2023 14:49
-
-
Save carhartl/591f7c4f59fb64699aa09b5f57214986 to your computer and use it in GitHub Desktop.
Update all git repos within directory
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/sh | |
dirs="$( | |
find . -name .devbox -prune -o -name .terragrunt-cache -prune -o -name lefthook-remotes -prune -o -type d -exec test -d '{}'/.git \; -print | |
)" | |
for dir in $dirs; do | |
cd "$dir" || exit | |
git config user.email [email protected] | |
cd - | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment