🐙 GitHub
Creating Pull Requests

Updated at 2015-03-06 17:49

This is a checklist how to create a pull request in GitHub.

  1. Fork the repository using GitHub's web interface
    GitHub -> Repository -> Fork
  2. Download the new fork to local environment.
    git clone
    cd repositoryname
  3. Create a development branch.
    git checkout -b my-feature
  4. Start development and split your changes into small commits.
    git add
    git commit -m "What you did"
  5. After you are done with your changes, update your local master.
    git checkout master
    git pull upstream
  6. Move your commits after the possible master changes with rebase.
    git checkout my-feature
    git rebase master
  7. Push your branch to the forked repository in GitHub.
    git push origin my-feature
  8. Create a pull request using GitHub's web interface.
    GitHub -> New pull request -> Compare across forks -> Select your fork and branch