universelab SCI · CLI · BIO

Config Presets

Gitkit ships curated git config presets — small sets of options that make day-to-day git noticeably better:

PresetWhat it sets
defaultspush.autoSetupRemote, help.autocorrect, diff.algorithm histogram
advancedmerge.conflictstyle zdiff3, rerere.enabled
deltacore.pager delta (requires delta)
gitkit config apply defaults
gitkit config apply advanced
gitkit config show          # current git config values

Scope

  • --global — apply to global git config (all repos)
  • --local — apply to the current repo only
  • Default: --local if inside a repo, --global otherwise

Idempotency

Options already set with the same value are detected and skipped:

$ gitkit config apply defaults --global
✓ push.autoSetupRemote = true (already set)
✓ help.autocorrect = prompt (already set)
✓ diff.algorithm = histogram (already set)

All configs already applied.

Running a preset twice never duplicates or clobbers anything.