Skip to content

Instantly share code, notes, and snippets.

@ElijahLynn
Last active February 16, 2021 02:17
Show Gist options
  • Save ElijahLynn/a848ae3214aba1f22745 to your computer and use it in GitHub Desktop.
Save ElijahLynn/a848ae3214aba1f22745 to your computer and use it in GitHub Desktop.
Cherry pick range commits from another repo
// Say you have a Repo and you are in a few levels deep. /profiles/publisher/modules/contrib/
// You have a module called ../contrib/embed_external
// You want to pull changes you made to it to upstream
// pwd ../contrib
// git clone embed-external-upstream EE-upstream
// cd EE-upstream
git -C ../embed_external/ diff --relative 76da308..HEAD . | patch -p1
// http://stackoverflow.com/a/9507417/292408
// http://stackoverflow.com/a/20115678/292408
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment