mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 17:48:49 +00:00
Update cheatsheets
This commit is contained in:
30
git-ls-remote
Normal file
30
git-ls-remote
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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>.
|
||||
|
||||
- Show all references in the default remote repository:
|
||||
|
||||
`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 repository based on name or URL:
|
||||
|
||||
`git ls-remote {{repository_url}}`
|
||||
|
||||
- Show references from a remote repository filtered by a pattern:
|
||||
|
||||
`git ls-remote {{repository_name}} "{{pattern}}"`
|
||||
Reference in New Issue
Block a user