Context:
Hence, the question:
how would I, using git command line and, optionally, basic bash tooling
git tag -l --merged ${BRANCH_COMMITTISH}
, but I need not tags for the given branch but branches for a given tag)git log --simplify-by-decoration --tags --not --branches --remotes --pretty=%d
--simplify-by-decoration
says only show the bare minimum needed to reveal the ancestry (usually you use this with --graph
). --tags --not --branches --remotes
says, well, what it says: list the tag history that's not in the branches or remotes history, i.e. tags unreachable from any branch or remote-tracking branch. --pretty=%d
says just show the refs.
git branch --contains ${TAG}
https://git-scm.com/docs/git-branch#git-branch---containsltcommitgt.
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