Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Committing Code

Code Block
themeMidnight
# stage your changes
git add .-am "your commit message"
# commit your staged changes with sign-off
git commit -s --amend
# hit "i" for insert mode
# Create your commit message according to the ONAP commit message format, including the Issue-ID field https://wiki.onap.org/display/DW/Commit+Messages
# hit "Esc" followed by ":wq" + enter to save and quit.
# Submit your commit to ONAP Gerrit for review
git review
# goto https://gerrit.onap.org/r/#/dashboard/self,
# select your review in the "Outgoing reviews" section, and add relevant committers and reviewers by clicking the "Add..." button.

Amending existing gerrit changes in review

Code Block
themeMidnight
# add new files/changes
git add .
# dont use -m - keep the same Issue-ID: line from original commmit
git commit --amend
git review -R
# see the change set number increase - https://gerrit.onap.org/r/#/c/17203/2

...