From 8d27898ab6c75081484ba69354730b598e498b12 Mon Sep 17 00:00:00 2001 From: Ehab Alsharif <36003641+sanehab@users.noreply.github.com> Date: Thu, 8 Oct 2020 14:50:01 +0300 Subject: [PATCH] git-ls-remote: add page (#4538) --- pages/common/git-ls-remote.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pages/common/git-ls-remote.md diff --git a/pages/common/git-ls-remote.md b/pages/common/git-ls-remote.md new file mode 100644 index 0000000000..66031c88f3 --- /dev/null +++ b/pages/common/git-ls-remote.md @@ -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: . + +- 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}}"`