-
Notifications
You must be signed in to change notification settings - Fork 39
OpenSDS NBP Project Contribution Tutorial
If you are a beginner and expect nbp project as the gate to open source world, this tutorial is one of the best choices for you. Just follow the guidance and you will find the pleasure to becoming a contributor.
Before making modifications of nbp project, you need to make sure that this project have been forked to your own repository. It means that there will be parallel development between nbp repository and your own repository, so be careful to avoid the inconsistency between these two repository.
If you want to download the code to the local machine, git
is the best way:
git clone https://your_repository_url/nbp.git
To reduce the conflicts between your remote repository and nbp repository, we SUGGEST you configure nbp as the upstream repository:
git remote add upstream https://github.com/opensds/nbp.git
git fetch upstream
To avoid inconsistency between multiple branches, we SUGGEST
checking out to a new branch:
git checkout -b new_branch_name upstream/devlopment
git pull
After updating the code, you should push the update in the formal way:
git add .
git status (Check the update status)
git commit -m "Your commit title"
git commit --amend (Add the concrete description of your commit)
git push origin new_branch_name
In the last step, your need to pull a compare request between your new branch and nbp development branch. After finishing the pull request, the travis CI will be automatically set up for building test.