...
The ASF INFRA team maintains a mirror of our git repository over on GitHub.That mirror is strictly one-way: changes from the Apache git get copied over, but not the other way around. Further, the mirror on GitHub is read-only for everyone. Which means we can neither accept nor close pull requests filled there via the GitHub web UI. However, we want to allow for contributions via GitHub Pull Requests. Here's how:
0. Add the ASF git repository
Code Block | ||
---|---|---|
| ||
$ git remote add apache git://git.apache.org/incubator-reef.git |
As a result, you can refer to the ASF git as "apache". An example setup, with a the GitHub mirror at upstream and a forked GitHub origin at {username}:
Code Block |
---|
$ git remote -v
apache git://git.apache.org/incubator-reef.git (fetch)
apache git://git.apache.org/incubator-reef.git (push)
origin https://github.com/{username}/incubator-reef.git (fetch)
origin https://github.com/{username}/incubator-reef.git (push)
upstream https://github.com/apache/incubator-reef.git (fetch)
upstream https://github.com/apache/incubator-reef.git (push) |
1. Create a branch on your local git repository
...
This assumes that you called the remote git repository at the ASF "apache". You can name the branch however you want, but it is customary to name them either after the pull request number or the JIRA id, e.g. REEF-24.
2. Pull the contribution into that branch
...