Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cherry-pick-rev() {
- local branch
- branch="cherry-pick/$1-$2"
- git checkout -b $branch
- git cherry-pick $(git rev-list --abbrev-commit --reverse $2 --not $1^1)
- git checkout -
- git merge --no-ff $branch
- git branch -d $branch
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement