$git remote add origin git@github.com:YourName/Java.git
fatal: Not a git repository (or any of the parent directories): .git
解决:git init
再重新连接。
本文介绍了一种常见的Git操作问题——无法连接到远程仓库,并给出了具体的解决方案。当尝试使用命令行添加远程仓库时遇到错误提示,通过初始化本地仓库后再进行连接可以有效解决问题。
$git remote add origin git@github.com:YourName/Java.git
fatal: Not a git repository (or any of the parent directories): .git
解决:git init
再重新连接。
1万+
1万+

被折叠的 条评论
为什么被折叠?
