mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
git-branch: replace --show-current with --contains example (#6387)
This commit is contained in:
parent
61b8a6baf1
commit
e090e48c45
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue