列出单个遥控器上的git分支 [英] List git branches from a single remote

查看:69
本文介绍了列出单个遥控器上的git分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从单个远程服务器列出远程git分支?以下列表从所有已配置的遥控器中分支出来:

Is it possible to list remote git branches from a single remote? The following list branches from all the configured remotes:

git branch -r

推荐答案

使用git remote show <remote-name>,它将列出该遥控器中存在的所有分支

use git remote show <remote-name> it will list all branches existed in that remote

示例: git remote show origingit remote show https://github.com/test/test-repo.git

引用:查看文档

这篇关于列出单个遥控器上的git分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆