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

一、问题

添加文件到暂存区时,报错“fatal: not a git repository (or any of the parent directories): .git”

fatal: not a git repository (or any of the parent directories): .git_第1张图片

 原因是没有仓库。

二、解决

初始化仓库即可:命令行输【git init 】,回车

fatal: not a git repository (or any of the parent directories): .git_第2张图片

 

你可能感兴趣的:(┉┇Love┇┉,Git,git)