How do I download source code from particular repo with only files that have been changed or added during a particular commit in that repo?

Sayooj Balakrishnan

I am working on a project referencing a particular remote repo by another user. A recent commit history has files which I require for my project. Is there any method to just download such files which were added during this commit.

jschnasse

Add the repo to your remotes

git remote add anotherUser git://repo

Fetch updates

git fetch --all

then use

git cherry-pick sha-id-of-commit

to load commit into current branch.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to download source code for a particular commit in Bitbucket?

Azure devops repo to download a particular file from repo using RestApi

How to source the files to be added to a git repo from a file?

Show only which files has been added to repo

How to search through GitHub repo for particular directories and files

How to exclude files from repo that was added to lfs?

How do you stash only files that have been added?

TortoiseSVN: Get only files that have changed (or are new) since a particular revision

How do I make a PR from a forked repo, for only certain files, but all commits on them?

Groovy plugin for Artifactory to restrict move from one Repo to particular repo

How could i push a commit to heroku that has already been pushed to git from local repo?

How to download the latest changed source code and files from a heroku app?

How do I delete all files of a particular type from a folder

How to download only a working directory of the AOSP source code without the entire repo history?

bower-download the github-forked version, how do I commit modification to the forked repo?

How do I download and save multiple files from google drive to a particular folder on my laptop using R and googledrive package

How do I write a condition that runs only if a particular file has not already been converted in a bash script?

I have a *lot* of source files to add to a git repo, how to make it fast

GitHub - PR commit shows old username as author. How do I change author of commit if I have no repo permissions?

repo : checking out source code from existing .repo directory without additional download

How do I find the index of a particular element from a particular column

TortoiseGit: Is it possible to clone only particular folder in a git repo?

Git Log of a particular file from a particular commit only

How do I force pip to install from the last commit of a branch in a repo?

How can I download files from a private repo with ssh for bitbucket/github?

How to turn on -mavx2 for only particular part of source code?

GitHub's GraphQL API: How can I get all of the commits I've contributed to a particular public repo?

How do I revert a specific commit that changed all files, causing lots of conflicts during revert?

How to download all files from Chrome Extensions example (subversion repo)?