git TAG
- dos tipos:
- lightweight: ligeros, hace referencia a un commit
- annotated: añade más información, como autor, mensaje y fecha
añadir
git tag <tag>: crea tag ligero en el HEADgit tag <tag> <commit>: crea tag ligero del commit concreto
git tag -a <tag> -m «mensaje»: crea tag anotado en el HEADgit tag -a <tag> <commit> -m «mensaje»: idem en el commit indicado
listar / usar
git tag: muestra lista de tagsgit show <tag>: información del taggit checkout <tag>: se usa como referencia para movernos al commit asociado
sincronizar
git push <remote> refs/tags/<tag>: sube el tag al repositoriogit push --tags: sube todos los tagsgit pull --tags: descarga todos los tags