Last active
March 19, 2020 18:19
-
-
Save pdemanget/2472f5e7e5026ed13cd40f69caf5fc4f to your computer and use it in GitHub Desktop.
bulk operation in git using gws file format
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/bash | |
grep -v '^#' < .projects.gws | { while IFS="|" read -r name repo; do | |
if [ -n "$name" ]; then | |
( | |
cd "$name" | |
echo "$name ;" | |
git "$@" | |
) | |
fi | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment