-
|
Hello. As in the title, I want to read the global git config without having to first create a config = GitConfig()
print(config.get("user", "name"))This is pretty close to what I found |
Beta Was this translation helpful? Give feedback.
Answered by
jelmer
Oct 23, 2025
Replies: 1 comment 1 reply
-
|
You can use E.g.: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jelmer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
StackedConfig.default()to get the config in /etc/gitconfig and ~/.gitconfig:E.g.: