Skip to content

Instantly share code, notes, and snippets.

@davenicoll
Created October 21, 2022 17:37
Show Gist options
  • Save davenicoll/cf6d232c4b554734ac0cc2bdc5ab989b to your computer and use it in GitHub Desktop.
Save davenicoll/cf6d232c4b554734ac0cc2bdc5ab989b to your computer and use it in GitHub Desktop.
Pull latest from all repos
#!/bin/bash
for folder in */; do
cd "./${folder}"
echo "Updating ${folder}..."
if [[ -d ".git" ]]; then
git pull
else
echo "Not a git repo, skipping"
fi
cd ..
echo ""
done
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment