From 9f3a49cfc406e6cad3c73b27d0f7f572f5ce7c71 Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Mon, 11 Oct 2021 15:47:15 +0200 Subject: [PATCH] Add cherry-pick notes --- Git/git.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Git/git.md b/Git/git.md index 5b2b37f..d1796b3 100644 --- a/Git/git.md +++ b/Git/git.md @@ -205,7 +205,9 @@ It's generally recommended creating annotated tags so it's possible to have all `git rebase`: rebase set of patches onto a new base `git rebase -i`: interactive rebasing -`gitk`: show graph of history (git for windows only) +`git cherry-pick `: bring in a commit from another branch +`git cherry-pick ^..`: bring in a range of commits from another branch (first included) +`git cherry-pick ..`: bring in a range of commits from another branch (first excluded) ### Undo & [Rewriting History](https://www.themoderncoder.com/rewriting-git-history/)