Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import another commit to my repo

Tags:

git

Sorry for newbie question but is there a way to import someone else commit (to his own repo) to my repo? it's gonna be a hard thing to change 900+ files manually

like image 977
RoboGreen Avatar asked Jun 21 '12 10:06

RoboGreen


1 Answers

You need to add the other's repo as a remote repo of yours, and fetch its changes:

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

Then git knows about the commit, just cherry-pick it with its SHA

git cherry-pick <SHA1>
like image 121
CharlesB Avatar answered Oct 03 '22 18:10

CharlesB