Git Plugin

gitman offers a simplified version of the command-line interface in the form of a plugin for Git.

Install

To clone/checkout the specified dependencies, run:

$ git deps

Delete all untracked files in dependencies by instead running:

$ git deps --clean

Git will exit with an error if there are any uncommitted changes in dependencies or a post-install script fails. To overwrite all changes or ignore script failures, run:

$ git deps --force

or to interactively overwrite changes, run:

$ git deps --force-interactive

Alternatively, it is possible to skip the install process only for dependencies that have uncommitted changes:

$ git deps --skip-changes

Update

If any of the dependencies track a branch (rather than a specific commit), the current upstream version of that branch can be checked out by running:

$ git deps --update

This will also record the exact versions that were checked out. Disable this behavior by instead running:

$ git deps --update --skip-lock

Or, to additionally get the latest versions of all nested dependencies, run:

$ git deps --update --all

To restore the exact versions previously checked out, run:

$ git deps

List

To display the currently checked out dependencies, run:

$ git deps --list

Uninstall

To delete all dependencies, run:

$ git deps --uninstall

If any dependencies contain uncommitted changes, instead run:

$ git deps --uninstall --force

If you need to keep the top level folder and anything other than the dependencies:

$ git deps --uninstall --keep-location