...
This describes setup for one local repo and two remotes. It allows you to push the code on your machine to either your GitHub repo or to git-wip-us gitbox.apache.org. You will want to fork GitHub's apache/hadoop
to your own account on GitHub, this will enable Pull Requests of your own. Cloning this fork locally will set up "origin" to point to your remote fork on GitHub as the default remote. So if you perform `git push origin trunk` it will go to GitHub.
To attach to the Apache git repo do the following:
Code Block |
---|
git remote add apache https://git-wip-usgitbox.apache.org/repos/asf/hadoop.git |
...
Code Block |
---|
origin https://github.com/your-github-id/hadoop.git (fetch) origin https://github.com/your-github-id/hadoop.git (push) apache https://git-wip-usgitbox.apache.org/repos/asf/hadoop.git (fetch) apache https://git-wip-usgitbox.apache.org/repos/asf/hadoop.git (push) |
...
HADOOP-XXXX is all caps and where ZZ is the pull request number on apache/hadoop repository. Including `closes apache/hadoop#ZZ` will close the PR automatically. More information is found at https://help.github.com/articles/closing-issues-via-commit-messages. Next, push to git-wip-us gitbox.apache.org:
Code Block |
---|
push apache trunk |
...