docs(REVIEWS): recommend remote.origin.push config

Change-Id: I090841101b9ee0295aabb2097f953bf149f39a9d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1403
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
Kane York 2020-07-23 15:46:10 -07:00 committed by kanepyork
parent a5c7e03dbd
commit 29c02242ad

View file

@ -54,10 +54,23 @@ of your commit and want to submit it for review, you push it to a git ref called
`refs/for/canon`. This designates the commits as changelists (CLs) targeted for `refs/for/canon`. This designates the commits as changelists (CLs) targeted for
the `canon` branch. the `canon` branch.
Sending a change for review is done by pushing to a special target. You can set
this to be the default push target through your git configuration:
```
git config remote.origin.url "ssh://$USER@code.tvl.fyi:29418/depot"
git config remote.origin.push HEAD:refs/for/canon
```
Then, after making your change, push to the default, or to a special target:
``` ```
Example: Example:
git commit -m 'docs(REVIEWS): Fixed all the errors in the reviews docs' git commit -m 'docs(REVIEWS): Fixed all the errors in the reviews docs'
git push origin HEAD:refs/for/canon git push origin
# Uploading a work-in-progress CL:
git push origin HEAD:refs/for/canon%wip
``` ```
TIP: Every individual commit will become a separate change. We do not merge TIP: Every individual commit will become a separate change. We do not merge