fatal: not in a git directory(Git)

Posted 时光-ing

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了fatal: not in a git directory(Git)相关的知识,希望对你有一定的参考价值。

报错内容:

解决办法:
测试环境:Git Bash
代码命令输入错误,正确代码如下:

$ git config --global user.name "yiyun"
$ git config --global user.email "1323256962@qq.com"


注意:先输入name或者email都可以,注意–global的正确写法,这个不写也可以。

以上是关于fatal: not in a git directory(Git)的主要内容,如果未能解决你的问题,请参考以下文章

fatal: not in a git directory(Git)

git解决 fatal: not in a git directory

mac 使用brew安装提示fatal: not in a git directory Error: Command failed with exit 128: git

mac 使用brew安装提示fatal: not in a git directory Error: Command failed with exit 128: git

ssh: Could not resolve hostname git.*****-inc.com : Temporary failure in name resolution fatal: The

git 解决fatal: Not a git repository