$ ./guess_the_languageGit
Git · medium · #45

What does git tag -a v2.0 -m "Release" create that git tag v2.0 does not?

  1. A branch that cannot be deleted
  2. A tag that follows the branch's new commits
  3. A GPG signature by default
  4. A tag object with tagger, date and message
-a makes an annotated tag, a full object with metadata. A lightweight tag is only a ref to a commit. Neither kind moves.
Play Git ▸