查找git分支创建时间的最简单/最快的方法是什么? [英] What is the easiest/fastest way to find out when a git branch was created?

查看:153
本文介绍了查找git分支创建时间的最简单/最快的方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出何时在我的存储库中创建了某个功能分支,但发现这一过程非常困难。我最终使用了 git show-branch git log 的组合。

I was trying to find out when a certain feature branch in one of my repositories was created and I found that surprisingly hard. I ended up using a combination of git show-branch and git log.

有没有更简单的方法可以从命令行快速有效地找到这条小信息?

Is there any easier way to find this little piece of information quickly and efficiently from the command line?

推荐答案

git show $(git merge-base master your-branch)

将显示分支从主分支分支出来的提交

will show the commit where your branch branched off master

这篇关于查找git分支创建时间的最简单/最快的方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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