group-git - Perform operations over many git repositories at once
This documentation refers to group-git version 0.1.2.
group-git [option] (git-command) -- [args] OPTIONS: Filtering: -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. -t --tag[=]str Only opperate on repositories tagged with str (tags can be specified in the config file see --man or with a file .[tag].tag in the project directory) Finding projects: -r --recurse Recurses into subdirectories to check if they contain git repositories rather than only stopping at the current level. Output: -p --page Turns on paginating out put uses $PAGER environment variable if set or 'less -Rx4SFX' if not. --no-page Turn off pagination. -q --quiet Don't show project names before running git on the directory -v --verbose Show more details Other: --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' group-git --tag perl pull
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 # for github you can specify an access token if using 2 factor auth #access_token: .... # Gitosis uses it's git url which needs to be defined or will be prompted for #gitosis: gituser@gitosis.server.com:gitosis-admin.git # Global Exclude a git project #exclude: # - project_not_to_be_managed # - ... # Global 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 # - ... # Set up tags for groups of projects so you can opperate only on that tag # Tags can also be defined with the projects directory creating a file with # a name of the format ".[tag].tag" # eg to tag a project as mytag create a file .mytag.tag #tags: # mytag: # - project1 # - project2 # myothertag: # - project2 # - project3
For Github and Bitbucket if username or password are missing you will be prompted to enter the details.
If paginating the $PAGER environment variable is used if it is not set the command 'less -Rx4SFX' is used for paginating, if $PAGER not set and less not installed no pagination will be done.
$PAGER
'less -Rx4SFX'
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.