GitLab作为一个版本控制神器,被众多公司青睐,然而,今天在GitLab创建了项目,本地也用ssh-keygen -t rsa -C "xxx@xxxx.com" 命令配好了秘钥公钥,然而死活连不上去。报错如下:
GitLab: Deploy keys are not allowed to push code.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Google了半天,终于找到了一篇解决方案:https://www.jianshu.com/p/5a7028b515ad
方法是,不需要配置所谓的Deploy Key,而是应该去个人的设置里找SSH Key。