From 4772e67e34c99bdba37ed852a6edae315f451cc7 Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Tue, 18 Mar 2025 21:54:24 +0100 Subject: [PATCH] git: add `switch --orphan` notes --- docs/misc/git.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/misc/git.md b/docs/misc/git.md index 4e1e319..4896410 100644 --- a/docs/misc/git.md +++ b/docs/misc/git.md @@ -180,6 +180,7 @@ It's generally recommended creating annotated tags so it's possible to have all `git branch -d|--delete `: delete specified branch `git branch -m|--move `: rename a branch without affecting the branch's history `git switch -c `: create a branch and switches to +`git switch --orphan `: create an new un-rooted branch from scratch `git switch `: change current branch (update HEAD) and update working directory `git merge `: merges into current branch