git_config
Read git configuration values to verify settings like user.name, user.email, core options, or remote URLs before operating. Returns a specific key's value or the full config list when no key is given.
Instructions
Read git configuration values from the repository, either one key or the full list. Use this to verify settings like user.name, user.email, core options, or remote URLs before operating, and to answer 'what is this repo configured to?'. Does NOT modify configuration — it is read-only; use git_remote for a friendlier view of remote URLs. Best for: checking settings like user.name, user.email, remote URLs or core options before operating. Returns: the value of the requested config key, or the full 'git config --list' output when key is omitted; an unset key returns 'Config key ... is not set.' without error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Config key to read, e.g. 'user.name' or 'core.autocrlf'; empty reads all config | |
| repo_path | No | Path to the git repository, defaults to '.' (the server working directory) | . |