[英]How can I see the branches merged into master in remote server, pushed by certain developer?
$ git branch -r --merged master
The command lists remote branches merged into master
, but does not tell you to whom they are belong. 该命令列出了合并到master
中的远程分支,但不会告诉您它们属于谁。 Say, another developer called Michael pushes some branches and they are merged into the branch master
in the remote server. 假设另一个名为Michael的开发人员推送了一些分支,它们被合并到远程服务器中的分支master
服务器中。 Would Jude be able to see the branches, which were pushed by Michael, merged into master in the remote server? Jude是否能够看到由Michael推动的分支合并到远程服务器的master中?
A branch that is pushed to a repo at the remote server is available to everyone that have access to that repo, everyone can push to that branch and merge with other branches, git does not enforce any restrictions. 有权访问该存储库的每个人都可以使用推送到远程服务器上的存储库的分支,每个人都可以推送到该分支并与其他分支合并,git并不强加任何限制。 Some git service providers (ie Bitbucket) can enforce some privacy to repos and branches, but that is part of their service not git in general. 一些git服务提供者(即Bitbucket)可以对回购协议和分支机构实施一些隐私保护,但这通常是其服务的一部分,而不是git。
EDIT: 编辑:
This will give the commit that represents the last merge in "master" 这将给出代表“ master”中最后合并的提交
git log -1 $(git branch -r --merged master| awk '{print $2}')
(this is a script for linux, you may need to adopt it for your OS) (这是用于Linux的脚本,您可能需要将其用于您的操作系统)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.