What is the easiest/fastest way to find out when a git branch was created?

有些话、适合烂在心里 提交于 2019-12-03 09:53:28

问题


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?


回答1:


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

will show the commit where your branch branched off master



来源:https://stackoverflow.com/questions/1808557/what-is-the-easiest-fastest-way-to-find-out-when-a-git-branch-was-created

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!