Git:我如何只列出本地分行? [英] Git: How do I list only local branches?

查看:83
本文介绍了Git:我如何只列出本地分行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

git branch -a 显示远程和本地分支。

git分支-r 显示远程分支。



有没有办法只列出本地分支?

解决方案


$ b


没有参数时,现有分支会被列出,当前分支会以星号加亮。



git branch -a shows both remote and local branches.

git branch -r shows remote branches.

Is there a way to list just the local branches?

解决方案

Just git branch without options.

From the manpage:

With no arguments, existing branches are listed and the current branch will be highlighted with an asterisk.

这篇关于Git:我如何只列出本地分行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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