Skip to content

Instantly share code, notes, and snippets.

@crissilvaeng
Created October 20, 2021 01:33
Show Gist options
  • Save crissilvaeng/7b91dedaefc84ea89d9980fa8bb21704 to your computer and use it in GitHub Desktop.
Save crissilvaeng/7b91dedaefc84ea89d9980fa8bb21704 to your computer and use it in GitHub Desktop.
Git Recursive
#!/bin/bash
find . -type d -mindepth 1 -maxdepth 1 -print0 | while read -d $'\0' folder; do
    echo -e "\033[0;35m$folder\033[0m"
    git -C $folder $@
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment