Created
April 18, 2020 13:57
-
-
Save dpavlin/a24b6974a5fdb3aa82870b7bde083731 to your computer and use it in GitHub Desktop.
do same thing to multiple git repos
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 -e | |
ls -d */.git | cut -d/ -f1 | while read dir ; do | |
cd $dir | |
echo "# cd" `pwd` | |
git $* | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment