This document briefly describes the policy for contributing changes to OpenDA. First we would like to emphasize that anyone can create a local copy and make your own local modifications of OpenDA using the normal commands of github and git. Only when you want to share your code with the OpenDA community this document applies.
For OpenDA we distinguish two methods for contributing:
- Create a fork on github and then a pull request. When you contribute for the first time, then this is probably what you want.
- Ask a core-developer of OpenDA to create a branch where you can push your contributions. If you do not know who the core-developers of OpenDA are then you can contact one at info@openda.org
As a general rule all code changes are first committed to a branch. These branches are usually personal, so you can work here in your without interference of other developments. There are a few special branches, with the name master or starting with release. These names are reserved and should not be used for development.
- Create a fork on github
- Clone your newly created fork
git clone https://github.com/<your account>/OpenDA.git
- Create a branch with a name that describes your intended developments.
git checkout -b my_branch
- Write and test your code in your branch.
- Commit to your local copy and push to your fork of OpenDA
git add bla
git commit -m "my description"
git push origin my_branch
- Once finished or more regularly: merge changes in OpenDA into your work
- Update your fork of OpenDA on github
git fetch origin master
to update your local copy (from your fork)git merge master
- Push changes to the server again
git push origin my_branch
(to your fork) - Create a pull request on github
- Clone your OpenDA repository
git clone https://github.com/OpenDA-Association/OpenDA.git
- Create a branch with a name that describes your intended developments.
git checkout -b my_branch
- Write and test your code in your branch.
- Commit to local copy and push to your fork of OpenDA
git add bla
git commit -m "my description"
git push origin my_branch
- Once finished or more regularly: merge changes in OpenDA into your work
git fetch origin master
to update your local copygit merge master
- Push changes to OpenDA on github again
git pus origin my_branch
- Create a pull request on github
Any questions? You can post them on the Forum or mail us at info@openda.org