Created
July 17, 2018 14:39
-
-
Save philmtd/3bfdb97ee6693d9f549be99d011120a9 to your computer and use it in GitHub Desktop.
cherry-pick -n in reverse order
This file contains hidden or 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/sh | |
reverse() { | |
local result= | |
for word in $@; do | |
result="$word $result" | |
done | |
echo "$result" | |
} | |
SHA=$(reverse $@) | |
echo $SHA | |
git cherry-pick -n $SHA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment