Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.01 KB

GitCL.mediawiki

File metadata and controls

44 lines (29 loc) · 1.01 KB

Git-CL is a way of using Rietveld with git for "pre-push" code reviews. This page explains best practices for using Git-CL with Thousand Parsec.

Set Up

To setup run git-cl config

 # git-cl config
 Rietveld server (host[:port]) [codereview.appspot.com]: codereview.mithis.com
 CC list: 
 Tree status URL: 
 ViewVC URL: 
 #

Using

The best way to use git-cl is with "feature branches", this is where you create a new localbranch every time you want to add a new distinct feature.

 # Hack, Hack 
 git add
 git commit
 
 # Upload to code review
 git cl upload
 
 # Fix from the code review
 git add
 git commit
 
 # Upload the new change
 git cl upload
 
 # Now we need to merge back into the main branch
 git checkout master 
 git merge --squash my-new-feature
 git commit # Add a comment about what this change does
 
 # Now push the change
 git push