What is the difference between an annotated tag and a lightweight tag in Git?

Git Medium

Git — Medium

What is the difference between an annotated tag and a lightweight tag in Git?

Key points

  • Annotated tags contain tagger information and a message
  • Lightweight tags are basic references to commits
  • Annotated tags are recommended for significant versions
  • Tag functionality affects Git workflow
  • Metadata storage differs between tag types

Ready to go further?

Related questions