当前位置: 首页 > 工具软件 > ls-- > 使用案例 >

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

步炯
2023-12-01
功能: 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
 类似资料: