Last active
February 16, 2021 02:17
-
-
Save ElijahLynn/a848ae3214aba1f22745 to your computer and use it in GitHub Desktop.
Cherry pick range commits from another repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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