简体   繁体   English

如何查看某些开发人员推送的分支合并到远程服务器中的master中?

[英]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.

相关问题 如何查看我推送的所有远程分支 - How can I see all remote branches pushed by me 我怎样才能看到在不同分支中一起推送的提交? - How can I see commit pushed in different branches together? 如何删除所有合并到某些分支的远程分支 - How to delete all remote branches merged into certain branches 合并两个Git分支,推送到服务器上,现在如何取消它们 - Merged two Git branches, pushed on server, now how to unmerge them 如果看起来不错,我如何列出合并到master的git分支并删除这些分支? - How can i list the git branches which are merged to master and delete the branches if it looks good? Git:如何获取推送到远程主节点的分支列表? - Git: How to get a list of pushed branches to remote master? 我将一个分支与一个过时的本地主分支合并,然后推送。 我怎样才能撤消? - I merged a branch with an out of date local master branch, and pushed. How can I undo? 如何删除所有本地分支,如果合并为主分支将导致无变化? - How can I delete all local branches which would result in no changes if merged into master? 如何重用已推送到远程的标签以用于稍后合并的代码 - How can I reuse a tag already pushed to remote for a code merged later 在合并到远程/主服务器之前合并远程分支? - merge remote branches before it gets merged to remote/master?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM