multipull
Ruby implementation of multipull.
Installation
gem install multipullUsage
multipullmultipull ~/Ruby # directoryWhat 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 {} pullgit 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; ); doneWhile these one-liners are nice, this multipull gem is better in the following ways
- No need to remember one-liners.
gem install multipullis easier than writing alias in bashrc. - No need to modify scripts for each OS.
- 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