find out when a git branch was created (not the first commit to that branch)
问题 how can I know when a git branch was created? i don't want to know when was the first commit to that branch. I want to find out when that branch was created. This is a script to reproduce a working example: #! /bin/bash set -x set -e mkdir test cd test git init echo "hello" >readme git add readme git commit -m "initial import" date sleep 5 git checkout -b br1 date # this is the date that I want to find out. sleep 5 echo "hello_br1" >readme git commit -a -m "hello_br1" date echo "hello_br1_b"