October 28, 2017

how to submit a pull request on GitHub


  • Fork the repository and clone it locally. Connect your local to the original “upstream” repository by adding it as a remote. Pull in changes from “upstream” often so that you stay up to date so that when you submit your pull request, merge conflicts will be less likely. 
  • Create a branch for your edits.
  • Reference any relevant issues or supporting documentation in your PR (for example, “Closes #88.”)
  • Include screenshots of the before and after if your changes include differences in HTML/CSS. Drag and drop the images into the body of your pull request.
  • Test your changes! Run your changes against any existing tests if they exist and create new ones when needed. Whether tests exist or not, make sure your changes don’t break the existing project.
  • Contribute in the style of the project to the best of your abilities. This may mean using indents, semicolons or comments differently than you would in your own repository, but makes it easier for the maintainer to merge, others to understand and maintain in the future.


Post a Comment

Featured Post

B&H has some good discounts on the entire Macbook range.

The 15.4-inch Macbook Pro (2016) model has $600 off, retailing at $1799, which is one the best I've seen so far. The higher spec Macbook...