@@ -71,15 +73,17 @@ If you configured the default to refs/for/master as described above, simply
`git push`
If HEAD currently points to the branch with the commits you'd like to push. Ideally, you should work in a feature/bug branch for the issue at hand. Then you can do:
If HEAD currently points to the branch with the commits you'd like to push.
Ideally, you should work in a feature/bug branch for the issue at hand. Then you can do:
If this is the first time you've pushed, you will be prompted to install a post-commit Hook to insert a Change-ID in your commit message. Gerrit needs this to track patchsets and will reject pushes until you install it. Simply copy paste the command to install the hook as instructed by Gerrit, and amend your commits.
If this is the first time you've pushed, you will be prompted to install a post-commit hook to insert a Change-ID in your commit message. Gerrit needs this to track patch sets and will reject pushes until you install it.
Simply copy and paste the command to install the hook as instructed by Gerrit and amend your commits.
## To Push a Private patch
## To push a private patch
You can push a work in progress (a.k.a draft) by pushing to refs/for/master%private
You can push a work in progress (a.k.a. draft) by pushing to `refs/for/master%private`.
For instance, you may want a "private" remote to push to; open <project_dir>/.git/config and add:
...
...
@@ -94,4 +98,5 @@ Then:
`git push private`
Private work the same way as patchsets, except they are not visible to others by default and don't trigger any Jenkins builds. A draft can then be shared or published.
Private work the same way as patchsets, except they are not visible to others by default and don't trigger any Jenkins builds.