Skip to content

Instantly share code, notes, and snippets.

Last active May 15, 2019 09:47
What would you like to do?
zsh function for running a command in multiple git repositories
autoload -U colors && colors
all-git() {
for i in */.git; do
gitdir=$(dirname $i);
echo $fg[green]">>> repos="$gitdir $reset_color
(cd $gitdir && git $@)
echo ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment