Explore Courses Blog Tutorials Interview Questions
0 votes
in DevOps and Agile by (29.3k points)

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

1 Answer

0 votes
by (50.2k points)

For this, you could Use

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

If you’d like to achieve this using gitk, then use

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

(where foo is the name of the branch you are looking for.)

This is the way to determine when a git branch was created.

Browse Categories