Skip to content

Instantly share code, notes, and snippets.

@pdemanget
Last active March 19, 2020 18:19
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 pdemanget/2472f5e7e5026ed13cd40f69caf5fc4f to your computer and use it in GitHub Desktop.
Save pdemanget/2472f5e7e5026ed13cd40f69caf5fc4f to your computer and use it in GitHub Desktop.
bulk operation in git using gws file format
#!/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