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

功能: List references in a remote repository
命令格式:
git ls-remote [--heads] [--tags] [--refs] [--upload-pack=]
	      [-q | --quiet] [--exit-code] [--get-url]
	      [--symref] [ […​]]


命令参数:
-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

你可能感兴趣的:(Git)