pgit
I use a couple of git repositories in my home directory to track and sync my configuration and org files across multiple platforms. Originally I used a single repository for everything, tracked at ~/.git, but when I split the two concerns I knew that I would want a simple way to manage all of my local git repositories at once. Inspired by my use of existing pssh-style commands, I wrote a quick (not quite so) parallel pgit:
#!/bin/bash for repo in ~ ~/org do echo 1>&2 $repo cd $repo git $@ cd - >/dev/null done
I want to improve this at some point with a configurable repository
list (likely a custom section in ~/.gitconfig
) and actual parallel
execution, but at least for day-to-day, this has already been
satisfying to use.