Skip to content

Instantly share code, notes, and snippets.

@atkit
Created August 26, 2014 14:24
Show Gist options
  • Save atkit/402242728b46fa6fe3ad to your computer and use it in GitHub Desktop.
Save atkit/402242728b46fa6fe3ad to your computer and use it in GitHub Desktop.
Recursive Git Pull
#!/bin/bash
for dir in $(find . -name ".git"); do
echo "Pulling " ${dir%/*}
cd ${dir%/*}
git pull --ff
cd - > /dev/null
echo
done
@atkit
Copy link
Author

atkit commented Aug 26, 2014

Sometimes I just needs simply pull all repos in directory and subdirectories. Recursive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment