8

I'm trying to update my Android Project and my J2EE project on gitlab but I get this error when I try to push:

Push rejected: Push new_branch to origin/new_branch was rejected by remote

enter image description here I tried this solution and this solution but the problem is still there.

Help me please.

slama007
  • 1,273
  • 2
  • 18
  • 34

1 Answers1

1

Make sure you have permissions on that repository. Also make sure the branch you're trying to push isn't protected in the reporitory settings.

Squirrelkiller
  • 2,575
  • 1
  • 22
  • 41
  • Thanks this helped me! The master branch is protected by default i assume, and only the maintainer can push to it, developers can't – Vijay Jul 08 '20 at 10:07
  • Yes, master is protected by default. If oyu want to make changes to master, make another branch and open a Merge Request into master. – Squirrelkiller Jul 09 '20 at 11:35