Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Git Pull Request

20190625 After forking a repository, cloning it locally, making changes to the repository, and committing those changes to your fork, a pull request can be submitted to have the changes considered for inclusion in the original repository's code base. Below we illustrate getting ready to submit the pull request. The github interface provides a Pull Request button that can be used to create the pull request once you are ready.

To begin, fetch the upstream master and merge that with your repository's master branch. The checkout here simply ensures the master branch is the active branch:

$ git fetch upstream 
$ git checkout master
$ git merge upstream/master

If there were any new commits then rebase your local repository. This may be in a development branch if you wish, but that is optional.

$ git checkout newfeature
$ git rebase master

On the github interface change to the branch to be merged and click on Pull Request.


Copyright © 1995-2019 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.