I tried to push to Master but could not

What happens

I can’t push to the master branch.

What do you understand or find about that problem

I think I may need to create a separate branch and somehow push it and then merge.

You make any workaround? What did you do?

I had created a separate branch but could not push to master.


vagrant@vagrant-ubuntu-trusty-64:~/challenges/code/codeabbey/001$ git push origin master
Username for ‘https://gitlab.com’: macmdev
Password for ‘https://macmdev@gitlab.com’:
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 509 bytes | 509.00 KiB/s, done.
Total 6 (delta 4), reused 0 (delta 0), pack-reused 0
remote: GitLab: You are not allowed to push code to protected branches on this project.
To https://gitlab.com/autonomicmind/challenges.git
! [remote rejected] master → master (pre-receive hook declined)
error: failed to push some refs to ‘https://gitlab.com/autonomicmind/challenges.git

I need help with

I don’t know what to do to push my solutions to the repo.

you need to push the branch that you’ve created, this branch that you created has to have your username

git push origin name-your-branch