Could not init project

Hi,

I did not create projects for a long time, but today I had a try and got stuck.

I created project and when I try to

git push -u origin master

I get

remote: GitLab: You are not allowed to push code to protected branches on this project.

Even when I try to create README file from web interface I get this error

You are not allowed to push into this branch

What had changed ? And what should I do to init my project and start to work?

Thanks

Try creating a project from the gitlab web interface and then cloning the project.
If you get an error, try using http protocol instead of git.
If this works, check if you’ve setup config file in your .ssh directory to use ssh.

Also, try upgrading your git version.

1 Like