Project

multipull

0.0
No commit activity in last 3 years
No release in over 3 years
Git pull multiple repositories at once
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

multipull

Gem Version

Ruby implementation of multipull.

Installation

gem install multipull

Usage

multipull
multipull ~/Ruby # directory

What is this?

The name of the command multipull was borrowed from the following article.

Git pull multiple repositories at once by @rmpato

alias multipull="find . -mindepth 1 -maxdepth 1 -type d -print -exec git -C {} pull \;"

The following pages include some great one-liners.

Run git pull over all subdirectories.

find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
ls | xargs -I{} git -C {} pull
ls | xargs -P10 -I{} git -C {} pull
git config --global alias.all '!f() { ls -R -d */.git | xargs -I{} bash -c "echo {} && git -C {}/../ $1"; }; f'
for i in */.git; do ( echo $i; cd $i/..; git pull; ); done

While these one-liners are nice, this multipull gem is better in the following ways

  1. No need to remember one-liners. gem install multipull is easier than writing alias in bashrc.
  2. No need to modify scripts for each OS.
  3. Options can be added as needed.

Development

PR welcome.

If you would like to become an owner and take over the development, please contact me with a pull request.

LICENSE

MIT