Created
June 26, 2014 14:17
-
-
Save atkit/ad55eb0296db735b6765 to your computer and use it in GitHub Desktop.
My git fork/upstream synchronization script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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