mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
git-show-ref: add page (#4426)
This commit is contained in:
parent
bd38407b56
commit
4cb55a132a
1 changed files with 20 additions and 0 deletions
20
pages/common/git-show-ref.md
Normal file
20
pages/common/git-show-ref.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# git show-ref
|
||||||
|
|
||||||
|
> Git command for listing references.
|
||||||
|
> More information: <https://git-scm.com/docs/git-show-ref>.
|
||||||
|
|
||||||
|
- Show all refs in the repository:
|
||||||
|
|
||||||
|
`git show-ref`
|
||||||
|
|
||||||
|
- Show only heads references:
|
||||||
|
|
||||||
|
`git show-ref --heads`
|
||||||
|
|
||||||
|
- Show only tags references:
|
||||||
|
|
||||||
|
`git show-ref --tags`
|
||||||
|
|
||||||
|
- Verify that a given reference exists:
|
||||||
|
|
||||||
|
`git show-ref --verify {{path/to/ref}}`
|
Loading…
Add table
Reference in a new issue