#前言:
当我在本地工作区添加远程库的时候,用的是https方式进行连接,这样就导致每次将本地库push到远程库的时候需要进行繁琐的GitHub账号密码验证。
本文记录了我解决该问题的过程,包括遇到的问题以及解决方案。
#解决方案
在GitHub创建一个repository之后,根据提示进行连接设置,先要确定的是要选择SSH,在本地用终端进入GitRepository目录输入给出的命令
我在终端输入第一行命令后,什么也没有发生,对的,Unix经典语录:“没有消息就是好消息”,接着输入第二行命令,出现错误提示:
➜ GitRepository git:(master) git remote add origin git@github.com/isLeeTender/GitRepository.git
➜ GitRepository git:(master) git pull origin master
fatal: 'git@github.com/isLeeTender/GitRepository.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
错误信息说,这个所push的远程库似乎不存在&#x