git branch -v shows a very nice list of all branches with their refs and last commit title. I would like to include that information (i.e. branch name, ref and commit title) in the log output from a script, but I only want it for the currently active branch.
Is there a way to get git to show me just the current branch?
Something like this should work
git branch --list -v `git rev-parse --abbrev-ref HEAD`
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With