Git CLI

The git commands operate recursively on the saved GitLab hierarchy. Run them from the cloned top-level group, a subgroup, or an individual project directory to narrow the scope.

Clone

Clone a GitLab group or project and save its hierarchy state:

gitconductor clone https://gitlab.com/ejb90-group

Clone into a specific directory:

gitconductor clone https://gitlab.com/ejb90-group ./work

Clone projects into a flat directory layout:

gitconductor clone --flat git@gitlab.com:ejb90-group

By default, clone fails before contacting GitLab if the target hierarchy already exists. Resume into an existing hierarchy and clone only missing projects:

gitconductor clone --resume https://gitlab.com/ejb90-group

Branch

Create a branch in each project below the current hierarchy:

gitconductor branch my-branch

Checkout

Check out a branch in each project below the current hierarchy:

gitconductor checkout my-branch

Add

Stage named files in matching projects:

gitconductor add README.md pyproject.toml

Stage all unstaged files in all projects:

gitconductor add --all

Commit

Commit staged changes in each project below the current hierarchy:

gitconductor commit -m "Update project metadata"

Status

Show working tree status for each project below the current hierarchy:

gitconductor status

Push

Push each project below the current hierarchy:

gitconductor push

Not Yet Implemented

pull is planned but not currently implemented.