A Very Short But Complete Guide to Sending a Pull Request to a github Project

  1. Clone the project
          $ git clone https://github.com/OWNER/REPO.git
    

    You may need to fork the project and clone your own forked version.

  2. Make a branch and switch to it
          $ git checkout -b YOURBRANCH
    
  3. Make your changes
  4. Add your changes to the index
          $ git add -p
    
  5. Commit your changes
          $ git commit -m "My commit message"
    
  6. Push your changes
          $ git push --set-upstream origin YOURBRANCH
    
  7. Visit https://github.com/YOURUSERNAME/REPO/tree/YOURBRANCH
  8. Click on New Pull Request
  9. Write something sensible
  10. Click on Send Pull Request

Leave a Reply

Your email address will not be published.