git错误:fatal: Not a git repository (or any of the parent directories): .git

用git add file添加文件时出现这样错误:

fatal: Not a git repository (or any of the parent directories): .git

解决办法:git init

原文地址:https://www.cnblogs.com/ldjhust/p/3239327.html