git-branch: replace --show-current with --contains example (#6387)
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
> Main Git command for working with branches.
|
||||
> More information: <https://git-scm.com/docs/git-branch>.
|
||||
|
||||
- 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:
|
||||
|
||||
|
Reference in New Issue
Block a user