gt config¶
View or edit Stack configuration.
Usage¶
Arguments¶
| Argument | Description |
|---|---|
[key] |
Configuration key to get/set |
[value] |
Value to set |
Examples¶
View All Configuration¶
Get a Specific Value¶
Set a Value¶
Configuration Keys¶
| Key | Description | Default |
|---|---|---|
trunk |
Trunk branch name | main or master |
remote |
Remote name | origin |
provider.type |
Git provider | auto-detected |
provider.host |
Provider hostname | provider default |
Configuration File¶
Configuration is stored in .git/stack/config.json:
{
"trunk": "main",
"remote": "origin",
"provider": {
"type": "github",
"owner": "username",
"repo": "project"
}
}
Provider Configuration¶
Provider settings are typically auto-detected from your remote URL. Override if needed: