问题
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