-
Create a branch to represent your work.
git checkout -b branchname
will simultaneously create a new branch and switch you to it. -
Start by writing tests that describe what you are adding. Your tests should make you confident that, when they pass, the feature you are adding is done and implemented properly. Be thoughtful about corner cases, like failures.
-
If you made a new test file, add it to
run-tests
. -
Now implement the feature until your tests pass. If you think of any extra edge cases, add them. Keep working until all the tests pass and you're happy with your work.
-
Merge in the most recent Node branch.
$ git fetch $ git merge origin/Node
-
Fix any merge conflicts that may have resulted from the above.
-
Run
./run-tests
. They should all pass. -
Push your branch to GitHub.
-
Create a pull request on GitHub from your branch to Node. Add at least one other programmer as a participant to review it.
-
When you and the reviewer are happy with the changes, merge them into Node.
TODO: The Node
branch should be changed to dev
or something.