Skip to content

Initialize Git Project

Michael Schenk edited this page Oct 29, 2016 · 1 revision
Usage: gtm init [-terminal] [-clear-tags] [-tags tag1,tag2]
Initialize a git project for time tracking

-clear-tags
	Remove existing tags
-tags string
	Set tags on project, i.e. "work,gtm"
-terminal
	Track time spent in terminal (command line) (default true)

To start tracking time you must first initialize it for use with gtm. Run gtm init from the root directory of your project.

Tags

You can add tags to the Git Repository with the -tags option. Tags are used to report across projects.

Terminal Tracking

Time spent in the terminal (outside of the editor) can be tracked. A terminal plugin is required to enable this feature. You can optionally turn off terminal tracking with -terminal=false option on a per project basis.

Reinitializing

You can re-initialize a project at any time to change values or enable new features. Simply run gtm init again with the preferred options.

Removing

Usage: gtm uninit [-yes]
Remove GTM tracking for the current git repository

-yes
	Automatically confirm yes to remove GTM tracking for the current Git repository