DEVRELticket on Jira.
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).
cmremote. This command will add the remote (use
git remote -v to see it).
To bypass Gerrit
cm-14.1 is the branch to which you are pushing, type:
git push cmremote HEAD:refs/heads/cm-14.1
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 cmremote HEAD:refs/heads/new-branch-name