Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/Documentation/git-ls-remote.adoc # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / Documentation / git-ls-remote.adoc` 157 lines ยท 5127 bytes Raw Blame History 1 git-ls-remote(1) 2 ================ 3 4 NAME 5 ---- 6 git-ls-remote - List references in a remote repository 7 8 9 SYNOPSIS 10 -------- 11 [verse] 12 'git ls-remote' [--branches] [--tags] [--refs] [--upload-pack=] 13 [-q | --quiet] [--exit-code] [--get-url] [--sort=] 14 [--symref] [ [...]] 15 16 DESCRIPTION 17 ----------- 18 Displays references available in a remote repository along with the associated 19 commit IDs. 20 21 22 OPTIONS 23 ------- 24 -b:: 25 --branches:: 26 -t:: 27 --tags:: 28 Limit to only local branches and local tags, respectively. 29 These options are _not_ mutually exclusive; when given 30 both, references stored in refs/heads and refs/tags are 31 displayed. Note that `--heads` and `-h` are deprecated 32 synonyms for `--branches` and `-b` and may be removed in 33 the future. Also note that `git ls-remote -h` used without 34 anything else on the command line gives help, consistent 35 with other git subcommands. 36 37 --refs:: 38 Do not show peeled tags or pseudorefs like `HEAD` in the output. 39 40 -q:: 41 --quiet:: 42 Do not print remote URL to stderr. 43 44 --upload-pack=:: 45 Specify the full path of 'git-upload-pack' on the remote 46 host. This allows listing references from repositories accessed via 47 SSH and where the SSH daemon does not use the PATH configured by the 48 user. 49 50 --exit-code:: 51 Exit with status "2" when no matching refs are found in the remote 52 repository. Usually the command exits with status "0" to indicate 53 it successfully talked with the remote repository, whether it 54 found any matching refs. 55 56 --get-url:: 57 Expand the URL of the given remote repository taking into account any 58 "url..insteadOf" config setting (See linkgit:git-config[1]) and 59 exit without talking to the remote. 60 61 --symref:: 62 In addition to the object pointed by it, show the underlying 63 ref pointed by it when showing a symbolic ref. Currently, 64 upload-pack only shows the symref HEAD, so it will be the only 65 one shown by ls-remote. 66 67 --sort=:: 68 Sort based on the key given. Prefix `-` to sort in descending order 69 of the value. Supports "version:refname" or "v:refname" (tag names 70 are treated as versions). The "version:refname" sort order can also 71 be affected by the "versionsort.suffix" configuration variable. 72 See linkgit:git-for-each-ref[1] for more sort options, but be aware 73 keys like `committerdate` that require access to the objects 74 themselves will not work for refs whose objects have not yet been 75 fetched from the remote, and will give a `missing object` error. 76 77 -o