snippetbashTip
jj config get — Get the value of a given config option. Unlike `jj config list`, the result is printed without extra
Viewed 0 times
thegivencommandvaluecliconfiggetjj config get
Problem
How to use the
jj config get command: Get the value of a given config option. Unlike jj config list, the result is printed without extra formatting for use in scripts. See also: jj config list. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-config-get>.Solution
jj config get — Get the value of a given config option. Unlike jj config list, the result is printed without extra formatting for use in scripts. See also: jj config list. More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-config-get>.Get the value of a config option:
jj config {{[g|get]}} {{name}}Get the configured user name:
jj config {{[g|get]}} user.nameGet the configured user email:
jj config {{[g|get]}} user.emailGet the default revset for the log command:
jj config {{[g|get]}} revsets.logCode Snippets
Get the value of a config option
jj config {{[g|get]}} {{name}}Get the configured user name
jj config {{[g|get]}} user.nameGet the configured user email
jj config {{[g|get]}} user.emailGet the default revset for the log command
jj config {{[g|get]}} revsets.logContext
tldr-pages: common/jj config get
Revisions (0)
No revisions yet.