Usage

Command line interface

To use GIT Template Render (GITTR) command line tool:

gittr

gittr command-line-interface

gittr [OPTIONS] COMMAND [ARGS]...

approve

Merge the rendered template from ght/master to master

gittr approve [OPTIONS] [COMMIT]

Arguments

COMMIT

Optional argument

configure

Edit an existing template configuration file

A git commit is created if the file is modified.

gittr configure [OPTIONS] [REPO_PATH]

Arguments

REPO_PATH

Optional argument

init

Initialize a git project from a ght-template repository.

REPOSITORY: A git-url pointing to a ght-repository to use as a template.
REFSPEC: The git refspec to use. [default: master]
This command will:
- Git-initialize the current working directory
- Download the ght template configuration file
- Create the ght/master tracking branch
EXAMPLES:
$ mkdir example
$ cd example
gittr init [OPTIONS] REPOSITORY [REFSPEC]

Arguments

REPOSITORY

Required argument

[REFSPEC]

Optional argument

render

Render the template.

REFSPEC: The template branch/refspec to use for rendering [default=master]
GHT_BRANCH: The destination branch of the rendered results [default=ght/master]
gittr render [OPTIONS] [REFSPEC] [GHT_BRANCH]

Options

-url, -u <url>

The upstream template url. [default: from config]

Arguments

[REFSPEC]

Optional argument

[GHT_BRANCH]

Optional argument

Library Usage

To use GIT Template Render (GITTR) in a project:

import gittr.cli