paxos1977 paxos1977 - 4 days ago 5
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

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

Comments