学习廖雪峰的Git教程
将SSH公钥加到远程仓库后,想在git bash中关联远程仓库
使用git remote add 命令报错:
fatal: Not a git repository (or any of the parent directories): .git
原因是:当前的目录是~/.ssh 因为刚去找公钥了,从自己的仓库切换到了其他目录,当然会显示当前不是一个git仓库,所以要切换回本地仓库的目录,再使用git remote add就没问题了
学习廖雪峰的Git教程
将SSH公钥加到远程仓库后,想在git bash中关联远程仓库
使用git remote add 命令报错:
fatal: Not a git repository (or any of the parent directories): .git
原因是:当前的目录是~/.ssh 因为刚去找公钥了,从自己的仓库切换到了其他目录,当然会显示当前不是一个git仓库,所以要切换回本地仓库的目录,再使用git remote add就没问题了