Getting permission denied (public key) on gitlab

前端 未结 30 2541
太阳男子
太阳男子 2020-12-02 04:27

My problem is that I can\'t push or fetch from GitLab. However, I can clone (via HTTP or via SSH). I get this error when I try to push :

Permission de

30条回答
  •  猫巷女王i
    2020-12-02 04:45

    There is a very simple solution to this: instead of working with ssh - move to https. to do this: in your project folder you have a .git folder in there - you have a config file - open it in a text editor and change the line

    url =git@gitlab.com:yourname/yourproject.git

    to

    url = https://gitlab.com/yourname/yourproject.git

提交回复
热议问题