Import another commit into my repo

Sorry for the newbie question, but is there any way to import someone else (my own repo) for my repo? it will be a difficult thing to change 900+ files manually

+4
source share
2 answers

Create a patch file with git format-patch and then apply it to your repo with git apply patchfile

+3
source

You need to add another repo as a remote repo, and get its changes:

 git remote add matefork <github-url> git fetch matefork 

Then git knows about commit, just cherry - select it with SHA

 git cherry-pick <SHA1> 
+8
source

All Articles