You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


Often times the initial patch submitted may have to be amended (e.g to fix build issues and/or address review comments), follow below steps to perform amend.


  1. Reset your local (required only if your local is out of sync and backup any files updated you would like to retain)
    1. git reset --hard origin/master
  2. Checkout the patch you want to edit/amend
    1. You can get this exact URL by clicking the 3 vertical dot buttons on right corner in gerrit ui and then click “Download Patch”
    2. For e.g - git fetch https://gerrit.onap.org/r/dcaegen2/services refs/changes/73/130673/1 && git checkout FETCH_HEAD 
  3. Make the required edits
  4. Add updated files and Commit as amend (instead of new commit)
    1. git add <files edited>
    2. git commit -as --amend 
  5. Push the patch for review
    1. git review
  • No labels