mgit

Version License Downloads

Multi-git is a quick tool that could easily have been created with some shell scripts, but it's a nice project to tackle a part of my daily workflow. It performs git actions on multiple directories within the current tree.

It will: * walk the directory tree; * traverse and find all git projects; * perform git with all the arguments you passed to mgit. * collect output per directory; * outputting thread-safe in the main thread;

It can even be tweaked with the environment variable MGIT_PARALLEL (defaulting to number of cpus times 8).

Examples

Keeping your indices up-to-date:

sh $ mgit fetch

Keeping your code up to date (if no conflicts):

sh $ mgit pull --ff-only

Keeping your code up to date, rebasing and using autostash:

sh $ mgit pull --rebase --autostash

Output

Per (found) git repository, the output will show:

As a summary it will show some statistics:

sh Success: 110, Warnings: 3

Roadmap / ideas

Changelog

0.1.10

0.1.9

0.1.8

0.1.7

0.1.6

0.1.5

0.1.4

0.1.3

0.1.2

0.1.1

0.1.0

License

MIT licensed