Skip to content

Instantly share code, notes, and snippets.

@jaredmo
Last active November 29, 2018 13:03
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 jaredmo/465c23a50bc76985c3ccbe17aede0b7b to your computer and use it in GitHub Desktop.
Save jaredmo/465c23a50bc76985c3ccbe17aede0b7b to your computer and use it in GitHub Desktop.
fetch.sh
# git fetch and status on all projects in working directory
d=$(ls -d -- */)
for i in $d
do
echo "Fetching $i..."
cd $i/
git fetch
git status
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment