<div dir="ltr">Dear folks<div><br></div><div>I'm asked for how to checkout two pending commits from Gerrit to the local machine, for the purpose of preparing for a manual rebasing/merging.</div><div>Here's the procedure:</div><div><ol><li>clone the repository from Gerrit</li><ol><li>see detailed procedure at <a href="http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2015-March/000961.html">http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2015-March/000961.html</a></li></ol><li>on Gerrit, find the checkout command line of the first pending commit</li><ol><li>navigate to the Change screen</li><li>click on "Download" dropdown</li><li>on the dropdown box, select "ssh" in the combo box at the bottom</li><li>copy the command line next to "Checkout"</li></ol><li>execute the checkout command line on the local repository</li><li>create a branch from the checked out commit</li><ol><li>git branch cWWWW-XX, where WWWW is the Change number, and XX is the patchset number</li></ol><li>on Gerrit, find the checkout command line of the second pending commit (see step 2)</li><li>execute the checkout command line on the local repository</li><li>create a branch from the checked out commit</li><ol><li>git branch cYYYY-ZZ, where YYYY is the Change number, and ZZ is the patchset number</li></ol></ol></div><div>Now you have checked out two pending commits from Gerrit, and they are in branch cWWWW-XX and cYYYY-ZZ, respectively.</div><div><br></div><div>If you find a mistake in this procedure, please reply-all to report the problem, and paste error message and screenshots.</div><div><br></div><div>Yours, Junxiao</div></div>