Git错误提示:fatal: Not a git repository (or any of the parent directories): .git
2017-10-11 09:58
513 查看
问题:把已有的本地仓库与GitHub关联,然后,把本地仓库的内容推送到GitHub仓库过程中,报错:fatal: Not a git repository (or any of the parent directories):
.git
![](https://oscdn.geek-share.com/Uploads/Images/Content/201910/23/a45987d9e12cf7c8cf5a0702a596e2ee)
原因:一般是没有初始化git本地版本管理仓库,所以无法执行git命令
解决:使用git init 初始化git本版本。然后用git status查看仓库状态。
![](https://oscdn.geek-share.com/Uploads/Images/Content/201910/23/9111f2caf9bd905c31dce765d298a16f)
![](https://oscdn.geek-share.com/Uploads/Images/Content/201910/23/161a974c4e50f2445c84042bcfcc3672)
你再从新关联GitHub管理库试试应该就可以了
.git
原因:一般是没有初始化git本地版本管理仓库,所以无法执行git命令
解决:使用git init 初始化git本版本。然后用git status查看仓库状态。
你再从新关联GitHub管理库试试应该就可以了
相关文章推荐
- Git错误提示之:fatal: Not a git repository (or any of the parent directories): .git
- Git错误提示之:fatal: Not a git repository (or any of the parent directories): .git
- Git错误提示之:fatal: Not a git repository (or any of the parent directories): .git
- git错误:fatal: Not a git repository (or any of the parent directories): .git
- git错误:fatal: Not a git repository (or any of the parent directories): .git
- git错误:fatal: Not a git repository (or any of the parent directories): .git
- git错误:fatal: Not a git repository (or any of the parent directories): .git
- 【Git初探】Git中fatal: Not a git repository (or any of the parent directories): .git错误的解决办法
- git错误:fatal: Not a git repository (or any of the parent directories): .git
- git错误:fatal: Not a git repository (or any of the parent directories): .git
- git错误:fatal: Not a git repository (or any of the parent directories): .git
- 【已解决】Git配置本地与远程库连接报错:fatal: Not a git repository (or any of the parent directories): .git
- WIN8下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
- 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
- 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
- fatal: Not a git repository (or any of the parent directories)
- git-fatal: Not a git repository (or any of the parent directories): .git