重置 git 设置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28927478/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 10:49:02  来源:igfitidea点击:

Reset git settings

git

提问by iProgram

When I try downloading thisgit repo I keep getting error: RPC failed; result=56, HTTP code = 200and I think this is because I messed up some settings (i was playing about with --configand --baretoday)

当我尝试下载回购我不断收到混帐error: RPC failed; result=56, HTTP code = 200,我想这是因为我搞砸了一些设置(我打得关于与--config--bare今天)

Is there a way how I can reset my git configuration to the factory settings?

有没有办法将我的 git 配置重置为出厂设置?

If it helps I am on a Mac.

如果它有帮助,我在 Mac 上。

回答by meagar

Git settings are stored in ~/.gitconfig. Just delete that file.

Git 设置存储在~/.gitconfig. 删除那个文件就行了。