group-git - Perform operations over many git repositories at once
This documentation refers to group-git version 0.1.1.
group-git [option] (git-command) -- [args] OPTIONS: -s --skip[=]regexp Skip any project matching this regexp -m --match[=]regexp Only process any project matching this regexp -l --local Ignore any management type and just look at what is checked out Only useful if you have a group-git.yml file defining Github, Bitbucked or Gitosis types. -q --quiet Don't show project names before running git on the directory -v --verbose Show more details --VERSION Prints the version information --help Prints this help information --man Prints the full documentation for group-git eg group-git log -- -n 1 group-git --local status group-git --verbose grep 'where is it'
Run any git command over all repositories in the current directory.
If you have a config file set up in the current directory (group-git.yml or some other suffix group-git file supported by Config::Any) extra functionality becomes available if you use Github, Bitbucket or Gitosis as your repository remote store. The config file will be read to supply the appropriate user credentials or in the case of gitosis the admin project location.
With this extra information both the pull and the update commands will try to clone any repository that are not currently checked out in the current directory.
eg group-git.yml --- # Type may be any of Github, Bitbucket or Gitosis type: Github #type: Bitbucket #type: Gitosis # if username or password are missing they will be prompted for username: joeblogs@example.com password: securepass # Gitosis uses it's git url which needs to be defined or will be prompted for #gitosis: gituser@gitosis.server.com:gitosis-admin.git # Exclude a git project #exclude: # - project_not_to_be_managed # - ... # Include only these projects (if mentioned only projects listed will be # processed any others found will be ignored) #include: # - project_of_interest_1 # - project_of_interest_2 # - ...
For Github and Bitbucket if username or password are missing you will be prompted to enter the details.
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
Ivan Wills - (ivan.wills@gmail.com)
Copyright (c) 2013 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Group::Git, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Group::Git
CPAN shell
perl -MCPAN -e shell install Group::Git
For more information on module installation, please visit the detailed CPAN module installation guide.