Created
August 21, 2017 09:00
-
-
Save delenamalan/515bedc37a8ebcbf86ca40dc1371cedc to your computer and use it in GitHub Desktop.
Update and rebase all repositories in a folder
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 f in */ | |
do | |
echo "Processing $f ..." | |
cd $f || continue | |
if [ -d .git ]; then | |
git branch | |
git remote update | |
git rebase origin/master | |
fi; | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment