Yes and no. You should get a complete repo, but when you merge it locally, it only contributes the modified files. Below is a walkthrough .
The important line is this:
git remote add upstream git:
And then the actual extraction / merging can be done as follows (two steps):
git fetch upstream master git merge upstream/master
or in one step:
git pull upstream master
(Examples taken from the GitHub link above)
source share