Skip to content

Instantly share code, notes, and snippets.

@emersonbarros
Created February 26, 2020 18:04
Show Gist options
  • Save emersonbarros/97b4459bce71b7f9a99609bfd1055aa6 to your computer and use it in GitHub Desktop.
Save emersonbarros/97b4459bce71b7f9a99609bfd1055aa6 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Our custom function
pull_updates(){
cd $1
pwd
git stash -q
git checkout -q master
git pull
sleep 1
}
for d in ./*/ ;
do
pull_updates $d &
done
wait
echo "All done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment