Skip to content

Instantly share code, notes, and snippets.

@atkit
Created June 26, 2014 14:17
Show Gist options
  • Save atkit/ad55eb0296db735b6765 to your computer and use it in GitHub Desktop.
Save atkit/ad55eb0296db735b6765 to your computer and use it in GitHub Desktop.
My git fork/upstream synchronization script
#!/bin/bash
for D in *; do
if [ -d "${D}" ]; then
cd ${D}
echo ${D}
echo ================================
git fetch upstream
git checkout master
git merge --ff --no-commit upstream/master
git push
echo ================================
echo
cd ..
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment