diff --git a/git/cherry-picking-commits-from-another-branch.md b/git/cherry-picking-commits-from-another-branch.md index 1f49e22..da3d52a 100644 --- a/git/cherry-picking-commits-from-another-branch.md +++ b/git/cherry-picking-commits-from-another-branch.md @@ -8,6 +8,6 @@ git cherry-pick git cherry-pick -n git cherry-pick --no-commit -# pick all the commits from A to B -git cherry-pick A^..B +# pick all the commits from A to B (A is older than B, remove caret (^) if you don't want to include A) +git cherry-pick "A^..B" ```