| I disagree. A tag does not reliably have an association to a branch. A tag is a "a pointer to a specific commit". It identifies a specific commit by providing a simplified name to describe that commit. A branch is a " lightweight movable pointer". Depending on the state of the repository, a tag may be on no branch, one branch, or many branches. Attempting to assign a branch name which is not the name of the tag is hard or impossible to do reliably. Output from the command git log --graph --pretty=oneline --abbrev-commit --decorate:
|