Git学习笔记-远程仓库-ls-remote命令

来源:互联网 发布:爱国治民能无知乎 编辑:程序博客网 时间:2024/05/29 19:44
功能: 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--tagsLimit 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