snippetbashTip
jj config set — Set a config option to a given value. The value is specified as a TOML expression. See also: `jj con
Viewed 0 times
givencommandvalueoptioncliconfigjj config setset
Problem
How to use the
jj config set command: 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>.Solution
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}}Code Snippets
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}}Context
tldr-pages: common/jj config set
Revisions (0)
No revisions yet.