...
There are several ways to setup Git for committers and contributors. Contributors can safely setup Git any way they choose but committers should take extra care since they can push new commits to the trunk at Apache and various policies there make backing out mistakes problematic. To keep the commit history clean take note of the use of --squash
below when merging into apache/trunk
.
Table of Contents |
---|
Git setup for Committers
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.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:
...