Page tree

Versions Compared


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


In order to achieve this, you should have got the upstream repo imported to Nordix Gerrit so you can do your work in a repo cloned from Nordix.

Uplift a Team Branch

Use this procedure to uplift (merge) the nordix-dev branch after your changes have been merged in to the ONAP repo and synched back to the nordix master branch.

  1. Fetch latest changes from central repo.
    git fetch
  2. Create a temporary branch based on the latest remote
    git checkout -b nordix-dev_temp origin/nordix-dev
  3. Perform the merge.
    git merge origin/master
  4. Depending on whether you encounter merge conflicts or not:
    If there are conflicts you will have to solve them before continuing:
    git status
    git mergetool
    git status
    git commit
    Remember to clean up the commit message (the default one provided by Git is not recommended)!
    The git status command has no practical effect, but it's always good to run to keep track of what is happening.
  5. If there are no merge conflicts Git will automatically commit the merge, but you should amend commit message (the default one provided by Git is not recommended):
    git commit --amend
    Running the git commit command also has the effect that a change-id is added to the commit message (if not present already). And you need a change-id to be able to push a commit for review.
  6. Send uplift for review and to run verification
    git push origin HEAD:refs/for/task/<owner>/<branch>
  7. Go back to team branch.
    git checkout task/<owner>/<branch>.    
  8. Remove temporary branch
    git branch –d task/<owner>/<branch>_temp

The repos are automatically kept in synch.

When automatic rebase fails


  1. Fetch the latest changes for all branches from central Nordix repo to local repo.
    git fetch
  2. Make sure that latest commit on Nordix master is the same as the latest one on ONAP master. If not, send a mail to the "discuss" mailing list that there might be something wrong with the synch job.
  3. Create a temporary branch
    git checkout -B temp_rebase_branch origin/master
  4. Get the change from Gerrit by using the cherry-pick link on the Gerrit review page in Nordix.
    git fetch refs/changes/69/67269/2 && git cherry-pick FETCH_HEAD
  5. Resolve the rebase conflicts
    git mergetool
    git cherry-pick --continue
  6. Resubmit to master in ONAPNordix
    git push usptream HEAD:refs/for/master
  7. Move to another branch so the temporary rebase branch can be deleted (git branch shows you the branches you have which you can move to)
    git checkout <some other branch>
  8. Remove the temporary local delivery branch
    git branch –D temp_rebase_branch