On this page
Reference for the safegit config command group — subcommands, flags, arguments, and usage details for the config group in the safegit CLI.
#safegit config
show, get, or set safegit configuration key-value pairs
#config get
get the current value of a single configuration key from the .git/safegit/config.json file, printing the raw value to stdout so it can be captured by scripts or used in automation pipelines
Effect: read_only
#Arguments
| Name | Required | Description |
|---|---|---|
key | yes | the configuration key whose current value should be retrieved |
#config set
set a configuration key to a new value in the .git/safegit/config.json file, creating the file if it does not exist yet, and persisting the change for all future safegit invocations in this repository
Effect: mutating
#Arguments
| Name | Required | Description |
|---|---|---|
key | yes | the configuration key to set to the specified value in config.json |
value | yes | the new value to assign to the specified configuration key |
#config show
show all configuration values currently in effect for this repository, including built-in defaults and any user overrides from the .git/safegit/config.json file, printed as key-value pairs to stdout for inspection and debugging purposes
Effect: read_only