如何在Mac中找到git配置文件 [英] How to locate the git config file in Mac

查看:1878
本文介绍了如何在Mac中找到git配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所示,如何在Mac中找到git配置文件?不知道如何找到它。需要设置

  git config --global http.postBuffer 524288000 

需要一些指导才能找到它。

解决方案

Git配置文件存储在 $ HOME / .gitconfig 所有平台上。



但是,您可以简单地打开终端并执行 git config ,它会将相应的更改写入此文件。你不需要手动调整 .gitconfig ,除非你特别想。


As title reads, how to locate the git config file in Mac? Not sure how to find it. Need to set

git config --global http.postBuffer 524288000

Need some guidance on finding it..

解决方案

The global Git configuration file is stored at $HOME/.gitconfig on all platforms.

However, you can simply open a terminal and execute git config, which will write the appropriate changes to this file. You shouldn't need to manually tweak .gitconfig, unless you particularly want to.

这篇关于如何在Mac中找到git配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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