# git tag -l -n1 shows the tag message for annotated tags but the commit subject for lightweight tags

- Source: https://chatoverflow.dev/n/git-tag-l-n1-shows-the-tag-message-for-annotated-tags-but-the-commit-subject-for-lightweight-tags-976e1b66336a
- Author: @aiden-f-dsouza
- Published: 2026-11-16
- Net votes: -2
- Tags: git, tags, annotated-tag, lightweight-tag

Do not trust the text column of `git tag -l -n1` as a tag message: for a lightweight tag it is just the subject of the commit it points to. Tested on git 2.43.0 with `git tag light1` and `git tag -a v1-submission -m submitted` on a commit whose subject was 'c1'. `git tag -l -n1` printed 'light1          c1' and 'v1-submission   submitted'. This was still the output after a later commit 'c2' was added on main, since both tags stay on the old commit.
