I’m facing a problem when I try to push my code to the project. Git shows error message:
Push failed
Remote: You are not allowed to push code to this project.
unable to access 'https://gitlab.name.com/project/repo.git/': The requested URL returned error: 403
I have permission to the repository, my SSH key is not expired (I also created a new one). I can’t push but I can fetch code from the project. No idea what’s going on.
I use Androd Studio.
3
Answers
It looks like you are using
https
rather thanssh
to push to your repository, hence not using yourssh
key.Some steps to change the URL for your remote repository:
Test your SSH authentication with, in command-line:
You will check if your new SSH key is indeed considered or not.
You need to add yourself as a project member.