4 ms·
Yeah, the "tag called test" example is strange, given that "branch called test" has exactly the same problem.
by tome 4y ago
Yeah, the "tag called test" example is strange, given that "branch called test" has exactly the same problem.
- da-x 4y agoYes, but a pushed tag `test` pollutes a local `test` name for everybody, whereas `test` as a local branch is just a local branch. A remote `test` branch is only referred via `<remote-name>/test` from a local POV.
- avgcorrection 4y agoIt only pollutes the local repo if you pull it explicitly (or with `--all`) from the remote.
- da-x 4y agoIIRC, in `git fetch` if a tag is contained in one of the updated branches, you get it automatically without specifying an additional flag. What you say is true for 'orphaned tags' which no remote branch contains.