哪里可以找到/创建项目本地配置的.git / config文件? [英] Where to find/create .git/config file for local configuration for project?
问题描述
我想知道如何为我的项目创建/查找.git / config文件,因为Windows不允许放置/。此外,这是一个文件,或者它是一个文件夹?
.gitconfig和.git / config之间有区别吗?
是的, .gitconfig
和<$ c有区别$ c> .git / config 。
.git / config
存储库的配置细节。但是 .gitconfig
会包含您的用户详细信息以及为git设置的配置,如 user.name
, user.email
,默认编辑器,颜色设置等。
在Windows中,您可以找到。 gitconfig
文件位于 C:\Users\user_name
。
.git / config
文件可以位于< git_repository> /。git /
( .git / config
会在你运行 git init
命令或者克隆一个初始化的仓库)时被创建。
I want to know how I can create/find a .git/config file for my project, as windows does not allow me to put the "/". Also, is this a file or is it a folder?
Is there a difference between .gitconfig and .git/config?
Yes, there is difference between .gitconfig
and .git/config
.
.git/config
will have the configuration details of your repository. But .gitconfig
will have your user details and the configuration you set for git like user.name
, user.email
, default editor, color setting, etc.
In Windows, you will find the .gitconfig
file in C:\Users\user_name
.
.git/config
file can be located under <git_repository>/.git/
(.git/config
gets created once you run git init
command or you clone an initialized repository).
这篇关于哪里可以找到/创建项目本地配置的.git / config文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!