Skip to content

Instantly share code, notes, and snippets.

@mraubo
Created December 7, 2020 08:08
Show Gist options
  • Select an option

  • Save mraubo/ca007c0ca3d5dda9a0b95cf1a012b6a3 to your computer and use it in GitHub Desktop.

Select an option

Save mraubo/ca007c0ca3d5dda9a0b95cf1a012b6a3 to your computer and use it in GitHub Desktop.
Cherry-pick from remote
# Cloning our fork
$ git clone git clone [email protected]:ifad/rest-client.git
# Adding (as "endel") the repo from we want to cherry-pick
$ git remote add endel git://github.com/endel/rest-client.git
# Fetch their branches
$ git fetch endel
# List their commits
$ git log endel/master
# Cherry-pick the commit we need
$ git cherry-pick 97fedac
# Pushing to our master
$ git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment