tech:git:tags

git TAG

  • dos tipos:
    • lightweight: ligeros, hace referencia a un commit
    • annotated: añade más información, como autor, mensaje y fecha
  • git tag <tag> : crea tag ligero en el HEAD
    • git tag <tag> <commit> : crea tag ligero del commit concreto
  • git tag -a <tag> -m «mensaje» : crea tag anotado en el HEAD
    • git tag -a <tag> <commit> -m «mensaje» : idem en el commit indicado
  • git tag : muestra lista de tags
  • git show <tag> : información del tag
  • git checkout <tag> : se usa como referencia para movernos al commit asociado
  • git push <remote> refs/tags/<tag> : sube el tag al repositorio
  • git push --tags : sube todos los tags
  • git pull --tags : descarga todos los tags
  • tech/git/tags.txt
  • Darrera modificació: 31/10/2025 11:03
  • per mate