How to bypass Gerrit
Say you have a bunch of changes and want to skip Gerrit’s interface entirely, pushing directly to the repository. For this you will need special privileges.
This is a summary of the user-upload feature, described in detail here.
Start by syncing the repo:
Branch the repository to anything. In the new branch, add your commits (or merge from another branch, git pull from AOSP, or whatever gets your changes in).
lineageremote. This command will add the remote (use
git remote -v to see it).
To bypass Gerrit
lineage-20 is the branch to which you are pushing, type:
git push lineage HEAD:refs/heads/lineage-20
To mass-push commits to Gerrit for review
Type the above mentioned command, but use
refs/for/branch instead of
To create a new remote branch (on GitHub)
You can create a new (remote) branch by typing:
git push -u lineage HEAD:refs/heads/new-branch-name