From d0276b547363236f87fae72fd4f7f2af2266f955 Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Tue, 18 Mar 2025 21:55:25 +0100 Subject: [PATCH] git: expand `switch --create` notes --- docs/misc/git.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/misc/git.md b/docs/misc/git.md index 4896410..7430b41 100644 --- a/docs/misc/git.md +++ b/docs/misc/git.md @@ -179,7 +179,7 @@ It's generally recommended creating annotated tags so it's possible to have all `git branch `: create new branch `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 -c|--create `: create a new branch and switch to it `git switch --orphan `: create an new un-rooted branch from scratch `git switch `: change current branch (update HEAD) and update working directory