HOWTO: gerrit submit a new patchset

You start working on a new change, submit for review, get a change request, make the necessary changes, and then submit for review.

  • update master
  • create new branch
  • make a change
  • submit the change
  • (the reviewers say you have to update something)
  • make the necessary changes
  • amend = make the change and submit for review again
cd <project>
git pull master
git checkout -b MyTestBranch
touch foo.txt
git add foo.txt
git commit foo.txt -m "Add foo file"
git review
# the reviewers tell you that you have to rename the file to bar
# and you do the changes
mv foo.txt bar.txt
git commit --amend
git review

watch the video: https://www.youtube.com/watch?v=yL7C2X5ftDQ

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.