Skip to main content
Version: 0.4.x

Gitti Configurations

Language Switching

Gitti support i18n (internationalization), the supported language are EN(default), JA (Japanese), ZH-HANS (Simplified Chinese) and ZH-HANT (Traditional Chinese).
To set the language of gitti you can run the following command

gitti --language JA

The gitti command follow by --language flag and the language code in capital

English: EN
Japanese : JA
Simplified Chinese: ZH-HANS
Traditional Chinese: ZH-HANT

Set Default Branch Naming for Git Init

You can set a default name for the branch when the repo was git initialized else it will be defaulting to use master
To set the default branch name to be use when git init was triggered by gitti, run the following command

gitti --init-dbranch <BRANCH NAME>

replace <BRANCH NAME> with the name that you desire.

Enable or disable auto updater

By default, gitti was configure to auto check for update and will prompt user when there is a newer version.
If you wish to stay at current version you can choose not to update. And if you wish to disable auto updater completely you can run the following command

gitti --auto-update false

and if you wish to enable auto updater, you can run

gitti --auto-updater true

Set Preferred Editor

You can configure the editor that Gitti will use when opening files for editing (e.g., when pressing e on a file). The default editor is vim.

To set your preferred editor, run:

gitti --editor

Configure Commit Log Limit

To improve performance in large repositories, Gitti limits the number of commit logs retrieved by default. You can configure this limit with the --max-commit-log-count flag (integer).

gitti --max-commit-log-count 500

Configure Commit Graph

For very large repositories, Gitti uses a commit graph to speed up log retrieval. You can enable or disable the writing of the commit graph.

gitti --allow-commit-graph-write true

Configure Logging Panel

Gitti includes a logging panel (accessible via /). You can configure the maximum number of logs kept in memory and how many are displayed in the UI.

Set maximum logs to keep in memory:

gitti --max-log-count 1000

Set number of logs to show in the panel:

gitti --show-x-log 50