Last Updated: February 25, 2016
·
571
· dsci

Git(hub): Merging from a forked repo

Sometimes another guy forks your repo and is doing some awesome stuff. Although there is no pull request, you want to have these changes.

(For this tip I leave aside that you should better ask the other guy ...)

To get this changes there are three steps:

git remote add the-other-guy git://github.com/the-other-guy/awesome-repo.git

Adds the fork to your repository.

git fetch the-other-guy

Fetches the changes.

And last but not least, merge the changes:

git merge the-other-guy/master

Have fun ...