• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Page Information

    Loading...
  1. Dashboard
  2. Undefined Space
  3. Skara
  4. git-trees

git-trees

  • Created by Erik Helin, last modified on Sep 04, 2020

Description

git-trees is a Git port of the Mercurial extension trees. git-trees helps manage a set of loosely couple Git repositories in a uniform way - commands can in a convenient way be run in multiple nested Git repositories. git-trees will automatically discover any nested Git repositories upon first use, there is no need to configure anything. If eventual nested repositories changes then a user must run git trees treconfigure in order for git-trees to pick up the new hierarchy.

Usage

$ git trees -h
usage: git-trees [options] <COMMAND>
        -m, --mercurial Deprecated: force use of mercurial
        -h, --help      Show this help text
            --version   Print the version of this tool

Examples

Running the command status --short in the top-level repository and a nested repository:

$ git trees status --short
[/home/user/git/top-level]
M README.md

[/home/user/git/top-level/nested]
M CONTRIBUTING.md

Configuration

It is common to alias existing command prefixed with "t" for running the equivalent command in the top-level repository and all nested repositories. The following sets up the alias tstatus for the command trees status:

$ git config --global alias.tstatus 'trees status'

Skara's gitconfig file comes with a number of aliases defined for the most common Git commands.

Source

Please see GitTrees.java.

Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 151, "requestCorrelationId": "628a83627b2d8f26"}