我想要一份所有分支机构的列表,其中包含有关他们跟踪的内容的信息。即:
$ git branch -a -???
master <-> origin/master
new_menu <-> origin/feature1
remotes/origin/master
remotes/origin/feature1
有什么办法可以实现吗?
最佳答案
详细是你想要的:
git branch -a -v
或
git branch -a -vv
--verbose
Show sha1 and commit subject line for each head, along with relationship to upstream branch (if any). If given twice, print the name of the upstream branch, as well.
关于Git:如何列出带有跟踪远程信息的分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7729982/