Skip to main content

Clone and Maintain an entire hierarchy of Git repositories in one command

Project description

Hierarchy

Travis PyPI

Hierarchy is a simple tool that allows you to clone and maintain an entire hierarchy of Git repository in one single command:

$ hierarchy

TODO: Add picture of hierarchy in action

Quick-Start

  1. Install

    $ pip install hierarchy
    
  2. Create the Hierarchy file

    $ nano ~/.hierarchy
    

    Sample Hierarchy File

    - url: 'git@github.com:FlorianKempenich/Hierarchy.git'
      path: '~/Dev/Tools'
      
    - url: 'git@github.com:FlorianKempenich/kata.git'
      path: '/Some/Other/Location'
      name: kata-cli
    
  3. Run Hierarchy

    $ hierarchy
    

Hierarchy file structure

The Hierarchy file represent the flat hierarchy of all the git repository to clone and automatically maintain.

It consists of a list of entries, each representing a repository to clone. Each repository has the following structure:

url: "URL of the project. The same used to clone the repository with `git clone`"
path: "The local path where to clone the repository. It can contain `~` to represent HOME"
name: "OPTIONAL - A name to override the default repository name when cloning"

The repository will be cloned at: path/name
If no name is provided, the repository name will be used.

A sample Hierarchy file might look like this:

- url: 'git@github.com:FlorianKempenich/Hierarchy.git'
  path: '~/Dev/Tools'
  
- url: 'git@github.com:FlorianKempenich/kata.git'
  path: '/Some/Other/Location'
  name: kata-cli

Options

  • -f / --file HIERARCHY_FILE

    A hierarchy file to use.
    Default: ~/.hierarchy

Project details


Download files

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

Source Distribution

hierarchy-0.2.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page