Fork the repo on which you're working, clone your forked repo to your local computer, and set up the upstream remote:
git clone git://github.com/YourGitHubUserName/this-repository-name.git
git remote add upstream https://github.com/MyUserName/this-repository-name.git
Checkout out a new local branch based on your master and update it to the latest.
git checkout -b TRUNK-123 master
git clean -df
git pull --rebase upstream master
Please keep your code clean. If you find another bug, you want to fix while being in a new branch, please fix it in a separated branch instead.
Push the branch to your fork. Treat it as a backup.
git push origin TRUNK-123
Code
Adhere to common conventions you see in the existing code
Search to see if your new functionality has been discussed.
Follow the Coding Conventions.
Commit to your branch
For every commit please write a short (max 72 characters) summary in the first line followed with a blank line and then more detailed descriptions of the change. Use markdown syntax for simple styling. Please include any issue numbers in your summary.
git commit -m "TRUNK-123: Put change summary here (can be a ticket title)"
NEVER leave the commit message blank! Provide a detailed, clear, and complete description of your commit!
git pull --rebase upstream master
If you have made many commits, please squash them into atomic units of work.
git checkout master
git pull --rebase upstream master
git checkout TRUNK-123
git rebase -i master
Make sure all unit tests still pass:
Push changes to your fork:
git push -f
In order to make a pull request, * Navigate to the repository you just pushed to (e.g. https://github.com/your-user-name/repository-name) * Click "Pull Request". * Write your branch name in the branch field (this is filled with "master" by default) * Click "Update Commit Range". * Ensure the changesets you introduced are included in the "Commits" tab. * Ensure that the "Files Changed" incorporate all of your changes. * Fill in some details about your potential patch including a meaningful title. * Click "Send pull request".
Thanks for that -- we'll get to your pull request ASAP. We love pull requests!
If you need to contact me, see my contact details on my profile page.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.