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.
有没有办法列出谷歌中的所有分支repo?
repo
我发现它很难理解repo。这里只提供极少数不提供列表分支机制的命令。
@帕特里克蔡 git --git-dir .repo/manifests.git/ branch -a
git --git-dir .repo/manifests.git/ branch -a
是git branch不是你要找的?
git branch
这列出了所有分支,例如:
branch_name_1 branch_name_2 *master
注意:前面*的分支名称表示当前分支。
*
要切换分支,请使用:git checkout branch_name_#
git checkout branch_name_#