SZanlongo
2/24/2016 - 9:21 PM

Fork your own repo in Github From: http://kroltech.com/2014/01/01/quick-tip-how-to-fork-your-own-repo-in-github/

Create a new blank repo

First, create a new blank repo that you want to ultimately be a fork of your existing repo. We will call this new repo “forkedrepo”.

Clone that new repo on your local machine

Next, make a clone of that new blank repo on your machine:

$ git clone https://github.com/YOURUSERNAME/forkedrepo.git

Add an upstream remote to your original repo

While this technically isn’t forking, its basically the same thing. What you want to do is add a remote upstream to this new empty repo that points to your original repo you want to fork:

$ git remote add upstream https://github.com/YOURUSERNAME/originalrepo.git

Pull down a copy of the original repo to your new repo

The last step is to pull down a complete copy of the original repo:

$ git fetch upstream
$ git merge upstream/master

Or, an easier way:

$ git pull upstream master

Now, you can work on your new repo to your hearts content. If any changes are made to the original repo, simply execute a git pull upstream master and your new repo will receive the updates that were made to the original!

Psst: Don’t forget to upload the fresh copy of your new repo back up to git:

$ git push origin master