Git push you are not allowed to upload merges

If you download a project from the remote branch master, you will modify the project and commit it. If someone else commits a project from the remote branch master, the change can be different. If you pull the same project, you will have a problem. You are not allowed to upload merges when you pull the code and merge it by default. You are not allowed to upload merges when you push the code. Gerrit does not allow local merge submissions by default.

Solution:
Object: you
Git rebase master git rebase master
If there is a conflict, resolve the conflict manually (enter the conflict file to resolve it) and then
Git rebase – continue
Then, in a push


Read More: