在git中显示每个分支的最近提交 [英] Display the most recent commit of each branch in git

查看:122
本文介绍了在git中显示每个分支的最近提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在git中显示每个分支的最近提交?



我在git中有一个代码库,我已经设置了一段时间。有几个分支用于不同的功能。我需要进入并更新/解决一些代码然而,我选择将它们命名得过于笼统,现在我无法分辨出我最近在做哪一个,甚至哪一个有我的功能。

理想情况下,我希望看到每个分支中的最后一次提交,以了解我最后留下的内容。有没有一个命令来做到这一点?我只需要看看我最后的工作。我希望避免切换到每个分支并查看它的日志。

解决方案

git show< name_of_the_branch> ;



将显示分支的最近提交< name_of_the_branch>


Is there a way to display the most recent commits of each branch in git?

I have a codebase in git that I've set down for a while. There are several branches in it for different features. I need to go in and update/troubleshoot some code However I choose to name them too generically and now I can't tell which one I was working on last, or even which one had my feature in it.

Ideally I would like to see the last commit in each branch to get an overview of where I last left things. Is there a command to do this? I just need to see where I was working last. I want to avoid switching to each branch and looking at its log.

解决方案

git show <name_of_the_branch>

will display the most recent commit for the branch <name_of_the_branch>

这篇关于在git中显示每个分支的最近提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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