Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eddywebs/f725d912417597fb9a34 to your computer and use it in GitHub Desktop.
Save eddywebs/f725d912417597fb9a34 to your computer and use it in GitHub Desktop.
#add remote repo from where commit needs to be pulled
git remote add <remote-repo> <git repository>
#fetch all the updates from remote-repo
git fetch <remote-repo>
#when the changes from the repo are fetched issue command below
git cherry-pick --strategy=recursive -X theirs <here-goes-sha1-for-commit-to-pull-from-remote-repo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment