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

Fork a Repository

20190611 A common workflow is to fork someone's original repository, make changes, and submit a pull request to the original repository for them to consider incorporating it into their master code base. You can fork the original repository through the github interface.

Once forked, clone your own fork to your local machine and link to upstream:

$ git clone git@github.com:gjwgit/pygymn.git 
$ cd pygymn
$ git remote add upstream https://github.com/simonzhaoms/azface.git
$ git remote -v

Fetch from the upstream repository:

$ git fetch upstream

View all branches, including those from upstream

$ git branch -va

Checkout your master branch and merge upstream

$ git checkout master 
$ git merge upstream/master

Checkout the master branch - you want your new branch to come from master

$ git checkout master

Create a new branch named newfeature (give your branch its own simple informative name)

$ git branch newfeature

Switch to your new branch:

$ git checkout newfeature

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.