Git Pull Multiple Repositories

If you are like me you read code from very interesting projects. You also like to be up-to-date with the projects. I have learnt a lot from reading other people projects. Some of my favorites include:

To keep up with the code you need to do multiple git pull commands on the different repositories. To help me do this I use a bash script to git pull from the multiple remote repositories.

for i in */.git; do (
echo $i;
cd $i/..;
git pull;
); done

The script loops through each directory in the current directory that is a git repository and runs the git pull command.

3 thoughts on “Git Pull Multiple Repositories”

Leave a Reply

Your email address will not be published. Required fields are marked *