Skip to content

Instantly share code, notes, and snippets.

@SteveDesmond-ca
Last active November 13, 2022 19:28
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 SteveDesmond-ca/df035d1221ef645e3c54e11af6fd6d5e to your computer and use it in GitHub Desktop.
Save SteveDesmond-ca/df035d1221ef645e3c54e11af6fd6d5e to your computer and use it in GitHub Desktop.
git-all
ga() {
find * -name .git -type d \
| sed 's/\/\.git$//' \
| sort \
| xargs -I % bash -c \
" \
echo && \
echo % && \
git -C % $* \
"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment