git-ls-remote: add page (#4538)

beep
Ehab Alsharif 2020-10-08 14:50:01 +03:00 committed by GitHub
parent 766026143f
commit 8d27898ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

View 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}}"`