From e090e48c45a4aa77166ae9dd7b4a160a7b52563b Mon Sep 17 00:00:00 2001 From: Axel Navarro Date: Thu, 26 Aug 2021 18:53:25 -0300 Subject: [PATCH] git-branch: replace --show-current with --contains example (#6387) --- pages/common/git-branch.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/git-branch.md b/pages/common/git-branch.md index dc8da7c90e..6f49d81e38 100644 --- a/pages/common/git-branch.md +++ b/pages/common/git-branch.md @@ -3,13 +3,13 @@ > Main Git command for working with branches. > More information: . -- List local branches. The current branch is highlighted by `*`: +- List all branches (local and remote; the current branch is highlighted by `*`): -`git branch` +`git branch --all` -- List all branches (local and remote): +- List which branches include a specific Git commit in their history: -`git branch -a` +`git branch --all --contains {{commit_hash}}` - Show the name of the current branch: