From 0558db872b886d41142460b6f078c6d24c5561dc Mon Sep 17 00:00:00 2001 From: S N Munendra Date: Mon, 13 Jun 2016 23:00:07 +0530 Subject: [PATCH] Adds alternatives to create and switch branch --- README.md | 6 ++++++ tips.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 39bc453..752b63f 100644 --- a/README.md +++ b/README.md @@ -746,6 +746,12 @@ git clone -b --single-branch https://github.com/user/repo.git git checkout -b ``` + +__Alternatives:__ +```sh +git branch && git checkout +``` + ## Ignore file mode changes on commits ```sh git config core.fileMode false diff --git a/tips.json b/tips.json index a073925..7d1daa2 100644 --- a/tips.json +++ b/tips.json @@ -327,7 +327,8 @@ "tip": "git clone -b --single-branch https://github.com/user/repo.git" },{ "title": "Create and switch new branch", - "tip": "git checkout -b " + "tip": "git checkout -b ", + "alternatives": ["git branch && git checkout "] },{ "title": "Ignore file mode changes on commits", "tip": "git config core.fileMode false"