68 个 登录

九库查询/Git 命令速查/git branch -a

git branch -a

列出本地与远端全部分支

Git 命令速查 更新 2026-11-16
分组
分支
命令
git branch -a
示例
git branch -a

远端的以 remotes/origin/ 开头。远端分支已删除但本地还显示时,用 git remote prune origin 清掉。

数据来源:Git 官方文档整理。内容存于数据库,更新日期 2026 年 11 月 16 日。