Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前,我有两台服务器'origin'和'stash'。如果我必须查看与“stash”或“origin”服务器相关的所有分支,我该如何查看?以下命令列出所有服务器上的分支:
git branch -a
尝试
git remote show <remote-name>
有一个部分称为“远程分支”。它列出了这个遥控器的分支。
另一种选择是grep与git branch -r
grep
git branch -r
git branch -r | grep '<remote-name>/'
.