From 681dce31db6a839abfeb040aa34a5c60ca2eb61b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=9Eahin=20Akkaya?= Date: Mon, 20 Mar 2023 15:07:37 +0300 Subject: [PATCH] TIL: Update cherry pick --- git/cherry-picking-commits-from-another-branch.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ```