Created
February 19, 2016 13:36
-
-
Save chetmancini/e695c6db5b6dfb0748f2 to your computer and use it in GitHub Desktop.
A script to git-fetch all the repositories in a single directory.
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 dir in */; | |
do | |
dir=${dir%*/} | |
echo "###############################################################################" | |
echo ${dir##*/} | |
cd $dir | |
git fetch --all | |
git merge --ff-only | |
cd .. | |
done% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment