1
0
Fork 0
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:
Axel Navarro 2021-08-26 18:53:25 -03:00 committed by GitHub
parent 61b8a6baf1
commit e090e48c45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,13 +3,13 @@
> Main Git command for working with branches. > Main Git command for working with branches.
> More information: <https://git-scm.com/docs/git-branch>. > 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: - Show the name of the current branch: