← 返回命令列表

Linux command

dolt-config 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Set global user

dolt config --global --add user.name "[Your Name]"

Set global email

dolt config --global --add user.email "[email@example.com]"

List all config

dolt config --list

Get specific value

dolt config --get user.name

Set local config

dolt config --local --add [key] [value]

Unset config value

dolt config --unset [key]

说明

dolt config manages Dolt configuration settings at global and repository-local levels. Essential settings include user identity (name and email) used in commit authorship. Global configuration applies to all repositories for the user, while local configuration is repository-specific. Local settings override global ones when both exist. Configuration is stored in files similar to Git's config system, with the same precedence rules for local vs. global settings.

参数

--global
Use global configuration.
--local
Use repository-local configuration.
--add _KEY_ _VALUE_
Add configuration entry.
--get _KEY_
Get configuration value.
--unset _KEY_
Remove configuration entry.
--list
List all configuration.
--help
Display help information.

FAQ

What is the dolt-config command used for?

dolt config manages Dolt configuration settings at global and repository-local levels. Essential settings include user identity (name and email) used in commit authorship. Global configuration applies to all repositories for the user, while local configuration is repository-specific. Local settings override global ones when both exist. Configuration is stored in files similar to Git's config system, with the same precedence rules for local vs. global settings.

How do I run a basic dolt-config example?

Run `dolt config --global --add user.name "[Your Name]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --global do in dolt-config?

Use global configuration.