更新时间:2023-11-23 15:56:22
git branch --merged master
列出合并到 master
git branch --merged
列出合并到 HEAD 中的分支(即当前分支的提示)
git branch --merged
lists branches merged into HEAD (i.e. tip of current branch)
git branch --no-merged
列出尚未合并的分支
默认情况下,这仅适用于本地分支机构.-a
标志将显示本地和远程分支,-r
标志仅显示远程分支.
By default this applies to only the local branches. The -a
flag will show both local and remote branches, and the -r
flag shows only the remote branches.