Works great with this little script I wrote to execute commands on all my repos:<p><pre><code> #!/bin/sh
REPOS="\
$HOME/git/repo1 \
$HOME/git/repo2 \
$HOME/git/repo3"
for REPO in $REPOS; do
echo "=============="
echo $REPO
if [ -d "$REPO" ]; then
pushd "$REPO" > /dev/null
sh -c "$1"
popd > /dev/null
else
echo "$REPO doesn't exist"
fi
done
echo "=============="
</code></pre>
Save it as "eachrepo" or something, then do<p><pre><code> eachrepo "git wtf"</code></pre>