]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-ls-remote.txt
Merge branch 'ss/faq-ignore'
[thirdparty/git.git] / Documentation / git-ls-remote.txt
index 0b057cbb100c4a3013b3836f40bb065ebee0b8bd..0a5c8b7d493efd0162774790b4ba1cab67e4c7db 100644 (file)
@@ -28,7 +28,9 @@ OPTIONS
        Limit to only refs/heads and refs/tags, respectively.
        These options are _not_ mutually exclusive; when given
        both, references stored in refs/heads and refs/tags are
-       displayed.
+       displayed.  Note that `git ls-remote -h` used without
+       anything else on the command line gives help, consistent
+       with other git subcommands.
 
 --refs::
        Do not show peeled tags or pseudorefs like `HEAD` in the output.
@@ -92,21 +94,23 @@ OPTIONS
 EXAMPLES
 --------
 
-       $ git ls-remote --tags ./.
-       d6602ec5194c87b0fc87103ca4d67251c76f233a        refs/tags/v0.99
-       f25a265a342aed6041ab0cc484224d9ca54b6f41        refs/tags/v0.99.1
-       7ceca275d047c90c0c7d5afb13ab97efdf51bd6e        refs/tags/v0.99.3
-       c5db5456ae3b0873fc659c19fafdde22313cc441        refs/tags/v0.99.2
-       0918385dbd9656cab0d1d81ba7453d49bbc16250        refs/tags/junio-gpg-pub
-       $ git ls-remote http://www.kernel.org/pub/scm/git/git.git master pu rc
-       5fe978a5381f1fbad26a80e682ddd2a401966740        refs/heads/master
-       c781a84b5204fb294c9ccc79f8b3baceeb32c061        refs/heads/pu
-       $ git remote add korg http://www.kernel.org/pub/scm/git/git.git
-       $ git ls-remote --tags korg v\*
-       d6602ec5194c87b0fc87103ca4d67251c76f233a        refs/tags/v0.99
-       f25a265a342aed6041ab0cc484224d9ca54b6f41        refs/tags/v0.99.1
-       c5db5456ae3b0873fc659c19fafdde22313cc441        refs/tags/v0.99.2
-       7ceca275d047c90c0c7d5afb13ab97efdf51bd6e        refs/tags/v0.99.3
+----
+$ git ls-remote --tags ./.
+d6602ec5194c87b0fc87103ca4d67251c76f233a       refs/tags/v0.99
+f25a265a342aed6041ab0cc484224d9ca54b6f41       refs/tags/v0.99.1
+7ceca275d047c90c0c7d5afb13ab97efdf51bd6e       refs/tags/v0.99.3
+c5db5456ae3b0873fc659c19fafdde22313cc441       refs/tags/v0.99.2
+0918385dbd9656cab0d1d81ba7453d49bbc16250       refs/tags/junio-gpg-pub
+$ git ls-remote http://www.kernel.org/pub/scm/git/git.git master pu rc
+5fe978a5381f1fbad26a80e682ddd2a401966740       refs/heads/master
+c781a84b5204fb294c9ccc79f8b3baceeb32c061       refs/heads/pu
+$ git remote add korg http://www.kernel.org/pub/scm/git/git.git
+$ git ls-remote --tags korg v\*
+d6602ec5194c87b0fc87103ca4d67251c76f233a       refs/tags/v0.99
+f25a265a342aed6041ab0cc484224d9ca54b6f41       refs/tags/v0.99.1
+c5db5456ae3b0873fc659c19fafdde22313cc441       refs/tags/v0.99.2
+7ceca275d047c90c0c7d5afb13ab97efdf51bd6e       refs/tags/v0.99.3
+----
 
 SEE ALSO
 --------