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