mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-21 08:48:13 +03:00
git-ls-remote: add page (#4538)
This commit is contained in:
parent
766026143f
commit
8d27898ab6
25
pages/common/git-ls-remote.md
Normal file
25
pages/common/git-ls-remote.md
Normal file
@ -0,0 +1,25 @@
|
||||
# git ls-remote
|
||||
|
||||
> Git command for listing references in a remote repository based on name or URL.
|
||||
> If no name or URL are given, then the configured upstream branch will be used, or remote origin if the former is not configured.
|
||||
> More information: <https://git-scm.com/docs/git-ls-remote.html>.
|
||||
|
||||
- Show all references in the default remote repositoiory:
|
||||
|
||||
`git ls-remote`
|
||||
|
||||
- Show only heads references in the default remote repository:
|
||||
|
||||
`git ls-remote --heads`
|
||||
|
||||
- Show only tags references in the default remote repository:
|
||||
|
||||
`git ls-remote --tags`
|
||||
|
||||
- Show all references from a remote repositiory based on name or url:
|
||||
|
||||
`git ls-remote {{repositiory-url}}`
|
||||
|
||||
- Show references from a remote repositiory filtered by a pattern:
|
||||
|
||||
`git ls-remote {{repositiory-name}} "{{pattern}}"`
|
Loading…
Reference in New Issue
Block a user