我在一个不整洁的回购中快速浏览了本地和远程未合并的分支。输出就像这样:
$ git branch -a --no-merged
staging
userupdate
remotes/origin/emailsetup
remotes/origin/feature/AFPSH-187
remotes/origin/hashpassword
remotes/origin/mergemailer
remotes/origin/userupdate
然后我检查了详细的输出,我惊讶地发现了一组不同的,更长的结果。
$ git branch -av --no-merged
staging 21026a6 [behind 0] updated staging server
userupdate 7363a5c file name fixing
remotes/origin/emailsetup b6d4094 Merge branch 'dev' into emailsetup
remotes/origin/feature/AFPSH-187 47e6bdd Merge branch 'plannercontent' into fe
remotes/origin/hashpassword 7b24f6b AFPSH-51 - Remove set password
remotes/origin/master 0f9f7ed all starting files
remotes/origin/mergemailer c9a8281 AFPSH-218 - Fix Expiration mailer met
remotes/origin/originalfiles 0f9f7ed all starting files
remotes/origin/staging 5112f1b latest deployment
remotes/origin/userupdate 299e722 further merge fixing
更多信息:
git branch -a --merged
的列表中。 git branch -av --merged
的列表也比git branch -a --merged
的列表长,但这似乎只包括头部相同的分支git branch -av --merged
不包含git branch -a --unmerged
git branch -av --merged
确实包含git branch -av --unmerged
中其他分支的一些结果,这些提交在两个列表中都有相同的哈希和消息git --version
收益1.8.3.msysgit.0
这些差异的原因是什么?