git push 报错:Deploy keys are not allowed to push code


[root@hkjump web-test]# git push 

GitLab: Deploy keys are not allowed to push code.

fatal: The remote end hung up unexpectedly



解决办法:

      Gitlab中有两种key:

       一种是deploy key, 他是只读的,deploy key在需要部署的某个project的setting中。

       另一种为SSH key,可读可写,如果需要Push,应该添加SSH key,SSH key在profile setting中 。


你可能感兴趣的:(git push 报错:Deploy keys are not allowed to push code)