Git:在git中列出所有未合并的更改 [英] Git : List all unmerged changes in git

查看:183
本文介绍了Git:在git中列出所有未合并的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为各种主题创建分支,并且在我不再需要它们时不定期删除它们,现在我已经结束了大约50个分支;)

我试图删除分支,其中一些没有改变。



我想要的是能够看到我的回购中任何分支上的变化在主人。有没有办法做到这一点



在此先感谢您。

解决方案

要列出没有合并到master中的提交分支:

  git branch --no-merged master 

列出相关的提交:

  git cherry -v master< branch> 


Creating a branch for various topics, and not regularly deleting them when I don't need them any more, I have now ended up with about 50 branches ;)

I tried deleting branches and some of them have unmerged changes.

What I want is the ability to see exactly what changes are there in any branch on my repo that are not in the master. Is there a way to do that

Thanks in advance.

解决方案

To list branches with commits not merged into master:

git branch --no-merged master

To list the relevant commits:

git cherry -v master <branch>

这篇关于Git:在git中列出所有未合并的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆