From 9b7cbf8587c79cc30bba3d3e86db24953122fb33 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Mon, 23 Dec 2019 23:09:29 +0000 Subject: [PATCH] git-branch: add example to show current branch (#3677) --- pages/common/git-branch.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/git-branch.md b/pages/common/git-branch.md index df72cb84af..295d245960 100644 --- a/pages/common/git-branch.md +++ b/pages/common/git-branch.md @@ -11,6 +11,10 @@ `git branch -a` +- Show the name of the current branch: + +`git branch --show-current` + - Create new branch based on the current commit: `git branch {{branch_name}}`