paxos1977 paxos1977 - 9 months ago 72
Git Question

How to determine when a Git branch was created?

Is there a way to determine when a Git branch was created? I have a branch in my repo and and I don't remember creating it and thought maybe seeing the creation timestamp would jog my memory.

Answer Source

Use

git show --summary `git merge-base foo master`

If you’d rather see it in context, then use

gitk --all --select-commit=`git merge-base foo master`

Screenshot