Files
tldr/pages.zh/common/dolt-config.md

28 lines
691 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# dolt config
> 读取和写入本地每个仓库和全局每个用户Dolt 配置变量。
> 更多信息:<https://docs.dolthub.com/cli-reference/cli#dolt-config>。
- 列出所有本地和全局配置选项及其值:
`dolt config --list`
- 显示本地或全局配置变量的值:
`dolt config --get {{name}}`
- 修改本地配置变量的值,如果不存在则创建它:
`dolt config --add {{name}} {{value}}`
- 修改全局配置变量的值,如果不存在则创建它:
`dolt config --global --add {{name}} {{value}}`
- 删除本地配置变量:
`dolt config --unset {{name}}`
- 删除全局配置变量:
`dolt config --global --unset {{name}}`