功能: List references in a remote repository
命令格式:
git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>]
[-q | --quiet] [--exit-code] [--get-url]
[--symref] [<repository> [<refs>…]]
命令参数:
-h
--heads
-t
--tags
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.
命令用法:
1、查看远程仓库所有分支
git ls-remote --heads repo_url