git-pull-all
Asynchronous git-pull(1) for multiple Git projects.
Last updated 6 years ago by tatsuyaoiw .
MIT · Original npm · Tarball · package.json
$ cnpm install git-pull-all 
SYNC missed versions from official npm registry.

git-pull-all

Concurrent git pull executor for multiple git repositories.

git-pull-all is a command line tool to execute git pull on multiple git repositories in parallel. Because it is asynchronous, it works really well especially for many projects and must be a lot faster than any synchronous ways, such as:

#!/bin/sh
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;

Installation

Using npm:

$ npm install -g git-pull-all

Usage

Assume you have these files and directories:

~/Projects/
  cool-examples/
    .git/
  funny-movies/
  my-todos.txt
  super-express/
    .git/

When you run git-pull-all command on ~/Projects directory, it should find child git repositories (in the above case cool-examples and super-express) then execute git pull on each of them.

$ cd ~/Projects
$ git-pull-all
funny-movies/
Not a git repository
cool-examples/
Already up-to-date.
super-express/
Already up-to-date.

You can also specify the path where the command is executed.

$ git-pull-all ~/Projects

You can also update repositories recursively.

$ git-pull-all ~/Projects -r

Assume you have these files and directories:

~/Projects/
  github/
    cool-examples/
      .git/
    funny-movies/
    my-todos.txt
    super-express/
      .git/
  gitlab/
    confidential/
      .git/

When you run git-pull-all -r command on ~/Projects directory, it should find all nested child git repositories (in the above case cool-examples, super-express and confidential) then execute git pull on each of them.

$ cd ~/Projects
$ git-pull-all
github/
Not a git repository
gitlab/
Not a git repository
funny-movies/
Not a git repository
cool-examples/
Already up-to-date.
confidential/
Already up-to-date.
super-express/
Already up-to-date.

Licence

MIT

Current Tags

  • 0.2.0                                ...           latest (2 years ago)

14 Versions

  • 0.2.0                                ...           2 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           6 years ago
  • 0.1.2                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.8                                ...           6 years ago
  • 0.0.7                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |