From be5a0a36261495fe69fcb7154105989fc5515e80 Mon Sep 17 00:00:00 2001 From: harsh6125 Date: Sun, 9 Aug 2026 23:03:08 +0530 Subject: [PATCH] docs: add git switch commands --- source/_posts/git.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_posts/git.md b/source/_posts/git.md index eba7707c..f47299dc 100644 --- a/source/_posts/git.md +++ b/source/_posts/git.md @@ -153,13 +153,13 @@ $ git branch -av Switch to my_branch, and update working directory ```shell script -$ git checkout my_branch +$ git switch my_branch ``` Create a new branch called new_branch ```shell script -$ git checkout -b new_branch +$ git switch -c new_branch ``` Delete the branch called my_branch