From 8305c4a4c6534cd298588900a525740bafb971e9 Mon Sep 17 00:00:00 2001 From: Adrian Skar Date: Thu, 16 Jul 2020 17:41:10 +0200 Subject: [PATCH] alternatives: create and switch new branch Add alternative to `996 ## Create and switch new branch` using git switch ref: https://git-scm.com/docs/git-switch --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index fd5b47f..40015ee 100644 --- a/README.md +++ b/README.md @@ -974,6 +974,10 @@ __Alternatives:__ git branch && git checkout ``` +```sh +git switch -c +``` + ## Ignore file mode changes on commits ```sh git config core.fileMode false