Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save akshaymittal143/6bacfb0309332d14fd31c304780da125 to your computer and use it in GitHub Desktop.
Save akshaymittal143/6bacfb0309332d14fd31c304780da125 to your computer and use it in GitHub Desktop.
git pull all nested repo from the base dir
add this into `.bash_profile`
alias git-pull-all="find . -maxdepth 3 -name .git -type d | rev | cut -c 6- | rev | xargs -I {} git -C {} pull"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment