From 6c59f8261b85861ddaf91005d71b1d35c8a6f15a Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Tue, 18 Mar 2025 21:59:00 +0100 Subject: [PATCH] git: add `rebase --root` notes --- docs/misc/git.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/misc/git.md b/docs/misc/git.md index 7430b41..9e80cfa 100644 --- a/docs/misc/git.md +++ b/docs/misc/git.md @@ -187,6 +187,7 @@ It's generally recommended creating annotated tags so it's possible to have all `git merge --continue`: continue previous merge after solving a merge conflict `git rebase `: rebase current branch commits onto another branch `git rebase --onto `: rebase a slice of commits from `` onto `` +`git rebase --onto --root `: rebase a slice of commits from `` onto ``, including the root commit `git cherry-pick `: bring in a commit from another branch `git cherry-pick ..`: bring in a range of commits from another branch (first excluded)