在git中获取总的远程分支 [英] Get total remote branches in git
本文介绍了在git中获取总的远程分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在git中获得总的远程分支?为了获得所有的远程分支,我在下面做这个声明,但是我无法获得这些分支的总数.试过--count但没有用
How to get total remote branches in git? To get all the remotes branches I do this statement below but i cannot get the count/total of these branches. Tried --count but didn't work
git branch -r
我怎么会算这些?
推荐答案
类似
git branch -r | wc -l
使用外壳?
wc -l </code>计算输入的行数.
wc -l
counts the number of line on it's input.
这篇关于在git中获取总的远程分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文