Smooth push to Gerrit
Gerrit (http://code.google.com/p/gerrit/) won't allow you to push directly to master branch. Instead you have to push to a 'review' branch.
Typically you're told to indicate 'review' branch on every push, e.g.
$> git push origin refs/for/review
You can make your life easier by setting up push branch in config/.git file:
$> vi .git
...
[remote "origin"]
...
push = HEAD:refs/for/review
...
Note: The examples above assumes your remote repository is nicknamed 'origin'.
Written by cSquirrel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Gerrit
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#