...
+-----------------+
...
To start:
...
...
You will need to update a local master sometimes (to merge to your development branches sometimes). How to do it:
Add remote for Apache Ignite mirror (you need to do it once)
git remote add upstream https://github.com/apache/ignite.git
Each time when you want to update your local master do next:
git checkout master
git pull upstream
To make contribution:
...
...
In additional to contributors configuration, commiters To merge a pull request you need to have two remotes one more remote - one for working with Apache Git repo and another for GitHub mirror. They It can be added like this:
git remote add apache https://git-wip-us.apache.org/repos/asf/ignite
git remote add upstream git@github.com:apache/ignite.git
<xxx>
with the pull request number):To push any branch at Apache repo use
git push apache <branch_name>
To apply a pull-request it's strongly recommended using ./scripts/apply-pull-request.sh script. Script takes 'pull-request-id' as a parameter and do next:
git fetch upstream pull/
<id>/head:pull-<id>-head
git merge --squashpr-<xxx>
pull-<id>-head
git commit --author=“John Doe <jdoe@apache.org>" -m “ignite-999 - Cool feature implemented. Closes #<xxx>.”
git push apache master
“<saved_author>" -s -m “<comment>. Fixes #<id>.”
Now, you will have one commit at master with all changes from pull-request. Changes can be reviewed again. If you accept all changes and want to push it, do next:
git push apache master
...