Created
August 21, 2013 09:13
-
-
Save svdmitrij/6292146 to your computer and use it in GitHub Desktop.
Cherry pick commit from other repository
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
#!/bin/bash | |
dir=$1 | |
sha=$2 | |
if [[ -z $dir || -z $sha ]] | |
then | |
echo "Usage: $0 otherRepoDir commitSha" | |
exit 1 | |
fi | |
git --git-dir=$dir/.git format-patch -k -1 --stdout $sha | git am -3 -k |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cherry-pick from other repository.