[Nfd-dev] HOWTO: checkout two pending commits to local machine
Junxiao Shi
shijunxiao at email.arizona.edu
Sat Jun 27 18:08:12 PDT 2015
Dear folks
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.
Here's the procedure:
1. clone the repository from Gerrit
1. see detailed procedure at
http://www.lists.cs.ucla.edu/pipermail/nfd-dev/2015-March/000961.html
2. on Gerrit, find the checkout command line of the first pending commit
1. navigate to the Change screen
2. click on "Download" dropdown
3. on the dropdown box, select "ssh" in the combo box at the bottom
4. copy the command line next to "Checkout"
3. execute the checkout command line on the local repository
4. create a branch from the checked out commit
1. git branch cWWWW-XX, where WWWW is the Change number, and XX is
the patchset number
5. on Gerrit, find the checkout command line of the second pending
commit (see step 2)
6. execute the checkout command line on the local repository
7. create a branch from the checked out commit
1. git branch cYYYY-ZZ, where YYYY is the Change number, and ZZ is
the patchset number
Now you have checked out two pending commits from Gerrit, and they are in
branch cWWWW-XX and cYYYY-ZZ, respectively.
If you find a mistake in this procedure, please reply-all to report the
problem, and paste error message and screenshots.
Yours, Junxiao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20150627/7c456cf9/attachment.html>
More information about the Nfd-dev
mailing list