This documentation outlines the general procedure for contributing to the typepress repository. If you wish to contribute please be sure to read the following resources:
If you've encountered a security vulnerability, please send it to contact@tomshaw.us. I will work to verify the vulnerability and patch it as soon as possible.
When reporting issues, please provide the following information:
- A detailed description indicating how to reproduce the issue.
Your first step is to establish a public repository from which we can pull your work into the master repository.
- Fork the relevant repository
- Clone the repository locally.
$ git clone git://github.com/tomshaw/typepress.git
$ cd typepress
Periodically, you should update your fork to match the typepress repository.
$ git checkout master
$ git fetch origin
$ git rebase origin/master
If you're tracking other branches -- for example, the "develop" branch, where new feature development occurs -- you'll want to do the same operations for that branch; simply substitute "develop" for "master".
We recommend you do each new feature or bugfix in a new branch. This simplifies the task of code review as well as the task of merging your changes into the repository.
A typical workflow will consist of the following:
- Create a new local branch based off your master branch.
- Switch to your new local branch.
- Do some work, commit, repeat as necessary.
- Push the local branch to your remote repository.
- Send a pull request.
Which branch should you issue a pull request against?
- For fixes against the stable release, issue the pull request against the "master" branch.
- For new features, or fixes issue the pull request against the "develop" branch.
If you are a frequent contributor, you'll start to get a ton of branches both locally and on your remote. We suggest doing some cleanup of these branches.
-
Local branch cleanup
$ git branch -d <branchname>
-
Remote branch removal
$ git push {username} :<branchname>