universelab SCI · CLI · BIO

CLI Reference

gitkit [command] [options]

Running gitkit with no command starts the interactive wizard.

Core

CommandDescription
gitkit / gitkit initInteractive wizard to configure the repo
gitkit statusShow current configuration status
gitkit clone <repo> [dir]Clone a repository and run the wizard
gitkit clone -b <branch> <repo>Clone a specific branch

Hooks

CommandDescription
gitkit hooks add <builtin>Install a built-in hook (hook type inferred)
gitkit hooks add <hook> <command>Install a custom shell command as a hook
gitkit hooks listList installed hooks
gitkit hooks list --availableShow all built-in hooks with descriptions
gitkit hooks remove <hook>Remove an installed hook
gitkit hooks show <hook>Print hook content

Ignore

CommandDescription
gitkit ignore add <templates>Generate/merge .gitignore via gitignore.io
gitkit ignore list [filter]List available templates

Attributes

CommandDescription
gitkit attributes initApply line-endings preset to .gitattributes

Config

CommandDescription
gitkit config apply defaultspush.autoSetupRemote, help.autocorrect, diff.algorithm
gitkit config apply advancedmerge.conflictstyle zdiff3, rerere.enabled
gitkit config apply deltacore.pager delta
gitkit config showShow current git config values

Scope: --global (all repos) or --local (current repo). Default is --local inside a repo, --global otherwise.

Builds

CommandDescription
gitkit build listList saved builds
gitkit build save <name>Save current repo config as a build
gitkit build apply <name>Apply a saved build
gitkit build delete <name>Delete a saved build

Global flags

FlagDescription
--yes, -ySkip confirmation prompts
--force, -fOverwrite existing files
--dry-runPreview changes without applying
--helpShow help for any command
--versionShow gitkit version