mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-18 20:50:02 +00:00
Update cheatsheets
This commit is contained in:
25
git-show-ref
Normal file
25
git-show-ref
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user