JaNith RathNayaka
JaNith RathNayaka

Reputation: 163

You are not allowed to push code to this project

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

Upvotes: 0

Views: 9771

Answers (2)

nonus25
nonus25

Reputation: 423

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.

Upvotes: 1

Saikat Roy
Saikat Roy

Reputation: 523

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.

Upvotes: 1

Related Questions