mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-08 06:45:58 +00:00
32 lines
812 B
Plaintext
32 lines
812 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# jj config set
|
|
|
|
> Set a config option to a given value.
|
|
> The value is specified as a TOML expression.
|
|
> See also: `jj config unset`.
|
|
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-config-set>.
|
|
|
|
- Set the user name in the user-level config:
|
|
|
|
`jj config {{[s|set]}} --user user.name "{{name}}"`
|
|
|
|
- Set the user email in the user-level config:
|
|
|
|
`jj config {{[s|set]}} --user user.email "{{email}}"`
|
|
|
|
- Set a config option in the repo-level config:
|
|
|
|
`jj config {{[s|set]}} --repo {{name}} {{value}}`
|
|
|
|
- Set a config option in the workspace-level config:
|
|
|
|
`jj config {{[s|set]}} --workspace {{name}} {{value}}`
|
|
|
|
- Set a boolean config option:
|
|
|
|
`jj config {{[s|set]}} --user {{name}} {{true|false}}`
|