Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 2.23 KB

File metadata and controls

77 lines (59 loc) · 2.23 KB
title CLI Reference
description Every gitkit command and flag.
order 8

CLI Reference

gitkit [command] [options]

Running gitkit with no command starts the interactive wizard.

Core

Command Description
gitkit / gitkit init Interactive wizard to configure the repo
gitkit status Show current configuration status
gitkit clone <repo> [dir] Clone a repository and run the wizard
gitkit clone -b <branch> <repo> Clone a specific branch

Hooks

Command Description
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 list List installed hooks
gitkit hooks list --available Show all built-in hooks with descriptions
gitkit hooks remove <hook> Remove an installed hook
gitkit hooks show <hook> Print hook content

Ignore

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

Attributes

Command Description
gitkit attributes init Apply line-endings preset to .gitattributes

Config

Command Description
gitkit config apply defaults push.autoSetupRemote, help.autocorrect, diff.algorithm
gitkit config apply advanced merge.conflictstyle zdiff3, rerere.enabled
gitkit config apply delta core.pager delta
gitkit config show Show current git config values

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

Builds

Command Description
gitkit build list List 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

Flag Description
--yes, -y Skip confirmation prompts
--force, -f Overwrite existing files
--dry-run Preview changes without applying
--help Show help for any command
--version Show gitkit version