Download only changed files git

18,387

Solution 1

Yes and no. You have to get the whole repo, but when you merge it locally, it only brings in the changed files. There is a walkthrough here.

The important line is this:

git remote add upstream git://github.com/original/repo.git

And then the actual fetching/merging can be done like this (two steps):

git fetch upstream master
git merge upstream/master

or in one step:

git pull upstream master

(Examples take from the GitHub link provided above)

Solution 2

git fetch (or git pull to automatically merge)

Share:
18,387
instigator
Author by

instigator

Updated on June 08, 2022

Comments

  • instigator
    instigator almost 2 years

    I have forked a project on GitHub and I want to download only the changed files from the original repo. Is it possible to do this?