gh-config

Change configuration for GitHub cli.

TLDR

Display what Git protocol is being used

$ gh config get git_protocol
copy

Set protocol to SSH

$ gh config set git_protocol [ssh]
copy

Use delta in side-by-side mode as the default pager for all gh commands

$ gh config set pager '[delta --side-by-side]'
copy

Set text editor to Vim

$ gh config set editor [vim]
copy

Reset to default text editor

$ gh config set editor [""]
copy

Disable interactive prompts

$ gh config set prompt [disabled]
copy

Set a specific configuration value

$ gh config set [key] [value]
copy

SYNOPSIS

gh config <command> [flags]

DESCRIPTION

Display or change configuration settings for gh.

Current respected settings: - git_protocol: the protocol to use for git clone and push operations (default: "https") - editor: the text editor program to use for authoring text - prompt: toggle interactive prompting in the terminal (default: "enabled") - pager: the terminal pager program to send standard output to - http_unix_socket: the path to a unix socket through which to make HTTP connection - browser: the web browser to use for opening URLs

COMMANDS

gh-config-get(1)

Print the value of a given configuration key

gh-config-list(1)

Print a list of configuration keys and values

gh-config-set(1)

Update configuration with a value for the given key

SEE ALSO

gh(1)

Copied to clipboard
digitalocean