如何显示我的全局Git配置? [英] How do I show my global Git configuration?

查看:96
本文介绍了如何显示我的全局Git配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示所有已配置的Git部分.

I'd like to show all configured Git sections.

我只找到git config --get core.editor,我想输出全局配置的所有内容,而不仅仅是配置的默认编辑器.

I only found git config --get core.editor, and I'd like to output everything that's configured globally, not only the configured default editor.

推荐答案

您可以使用:

git config --list

或查看您的~/.gitconfig文件.本地配置将在您存储库的.git/config文件中.

or look at your ~/.gitconfig file. The local configuration will be in your repository's .git/config file.

使用:

git config --list --show-origin

查看该设置的定义位置(全局,用户,存储库等)

to see where that setting is defined (global, user, repo, etc...)

这篇关于如何显示我的全局Git配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆