From 4cb55a132a2c8712fb2bccfe390daa9ed697edcc Mon Sep 17 00:00:00 2001 From: Ehab Alsharif <36003641+sanehab@users.noreply.github.com> Date: Tue, 6 Oct 2020 14:28:42 +0300 Subject: [PATCH] git-show-ref: add page (#4426) --- pages/common/git-show-ref.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/git-show-ref.md diff --git a/pages/common/git-show-ref.md b/pages/common/git-show-ref.md new file mode 100644 index 0000000000..a50bda49f8 --- /dev/null +++ b/pages/common/git-show-ref.md @@ -0,0 +1,20 @@ +# git show-ref + +> Git command for listing references. +> More information: . + +- 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}}`