[SOLVED]Gerrit authentication failed

That info is correct. You don’t push to a branch directly, you push to refs/for/… which stores your commit on the server, but let others review it before its merged. It is not really a different branch, just a staging area for the master branch where code is reviewed.

In most cases, what you want is:

git push origin HEAD:refs/for/master

Basically, "push to origin my current commits (HEAD) for review against the master branch.

You can also install “git review” which will somewhat automate this.