Find the Git Branch from a commit hash
September 8, 2023
ยท
1 min read
This logs the branch commit from any commit that is passed through.i
Quite useful when searching for branches from a commit.
git log 338666e77bb628935618d13b1201f5f7e1c43c5c..HEAD –ancestry-path –merges –oneline –color | tail -n 1