Home > front end >  You are not allowed to push code to this project
You are not allowed to push code to this project

Time:01-31

I have created a project and cloned it in my local machine. I have done a change and I have committed it without problems. Now I am trying to push those changes from local to the remote repository in Gitlab

I got this error message: -

enter image description here

How I can fix the issue

CodePudding user response:

Please check the settings of that repository you are trying to push. and make sure you have the proper read/write access for that repository.

CodePudding user response:

Seems you are trying to use HTTPS push method, and think you could try SSH [https://youtu.be/0z28J0RfaJM] method to do push since HTTPS method is often blocked, check if project permissions are not causing this error as suggested by Saikat Roy. Check if your user is a member and if not try to add yourself as a project member. From the project page click the settings gear and then click members. Add yourself as a member to the project if you can if not ask admin to do it.

Also You should be aware that if you do this, https://youruser:[email protected]/bla your gitlab password will be stored in plaintext in your .git directory, which is obviously undesirable.

  •  Tags:  
  • Related