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

简介: <p>我用git add file添加文件时出现这样错误: fatal: Not a git repository (or any of the parent directories): .</p> <p><br></p> <p></p> <p style="margin-top:0px; margin-bottom:0px; padding-top:0px; padding-bot

我用git add file添加文件时出现这样错误: fatal: Not a git repository (or any of the parent directories): .


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

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

提示说没有.git这样一个目录,解决办法如下:

git init

就可以了!


目录
相关文章
|
7月前
|
编译器 开发工具 git
【Git异常】You are in ‘detached HEAD‘ state, which means that you‘re not on any branch Checkout a branch
【Git异常】You are in ‘detached HEAD‘ state, which means that you‘re not on any branch Checkout a branch
78 0
|
1天前
|
网络安全 数据安全/隐私保护
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
|
6月前
|
网络安全 开发工具 git
git clone之报错git@gitee.com:Permission denied (publickey).fatal: Could not read from remote repository
git clone之报错git@gitee.com:Permission denied (publickey).fatal: Could not read from remote repository
190 0
|
8月前
|
开发工具 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问题
1099 1
|
5月前
|
开发工具 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的问题
|
6月前
|
开发工具 git Windows
git报错-fatal: HttpRequestException encountered.
git报错-fatal: HttpRequestException encountered.
29 0
|
6月前
|
开发工具 git
【Git】push代码时候报错,出现fatal: unable to access xxx Recv failure: Connection was reset
【Git】push代码时候报错,出现fatal: unable to access xxx Recv failure: Connection was reset
112 0
|
11月前
|
开发工具 git
Git 提示error:src refspec master does not match any
Git 提示error:src refspec master does not match any
92 0
|
开发工具 git
git fatal: 拒绝合并无关的历史
记录一个git的错误, 以备以后查看
373 0
|
1天前
|
缓存 数据可视化 网络安全
Git命令大全
Git命令大全
61 1

热门文章

最新文章

相关实验场景

更多