It there any placeholder for showing branch name that commit is in for git --pretty=format
(in git log and git show)?
Like %H
for commit hash?
Add the git log --decorate
and it will display branches, tags etc.
--graph
.githelpers
From the log documentation:
--decorate [=short|full|no]
Print out the ref names of any commits that are shown. If short is specified, the ref name prefixes refs/heads/, refs/tags/ and refs/remotes/ will not be printed. If full is specified, the full ref name (including prefix) will be printed. The default option is short
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