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: