Skip to main content

Dependency management between git repositories made easy

Project description


Dependency management between git repositories made easy


Git Dependencies is a tool that allows developers to establish and resolve dependencies between git projects, in the same way a package manager does in the system.


  • Create a gd.txt file in the root directory of your project;
  • Express dependencies in the format: REPO_URL RELATION HASH_OR_TAG;
  • Where RELATION can be either ==, <= or >=;
  • Resolve the dependencies calling gitdep clone_dir.

The last command will resolve the dependencies recursively until de the dependencies for all repositories are met.

To be easily integrated with existing tools and scripts, gitdep clone_dir will print a list of cloned repositories to stdout along with their versions.

Versioning with GIT

The relation between versions (hashes and tags) is extracted from the git's internal tree, so a hash A is older than B if it A is an ancestor of B. Because of that, gitdep can also detect version conflicts projects depend on hashes from different branches.


For testing, one may require additional dependencies, so gitdep also supports a list of dependency files in the same format as gd.txt, just call gitdep clone_dir project_dep_file test_dep_file and it will resolve the dependencies together.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gitdep, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size gitdep-0.0.1-py3-none-any.whl (17.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size gitdep-0.0.1.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page