-tags

jp.dev 2020-11-27 02:08:56 -03:00
parent 2addab4d25
commit 4773250f46

@ -109,47 +109,6 @@ git push origin master
![merge](https://gitea.kickto.net/jp.av.dev/basicos_git/raw/branch/master/assets/images/merge_pull_request.png) ![merge](https://gitea.kickto.net/jp.av.dev/basicos_git/raw/branch/master/assets/images/merge_pull_request.png)
## Tags
-----
**Lightweight Tag**
Es un simple puntero a un commit, no guarda mas info.
- ` git tag v0.2 `
**Annotated Tags**
Etiqueta que apunta a un commit, y sus archivos en ese momento.
Contiene informacion adicional y mas completa, uso recomendado.
```
# Crear Annotated Tag
git tag -a 26-11-20v0.1 -m "Version 0.1"
# Publicar tags
git push --tags
git push origin --tags
# Listar Tags
git tag
# Ver Tag
git show 26-11-20v0.1
# Tag a commit anterior (cheksum del commit, o parte de este)
git tag -a 19-10-20v0.0.5 0a478hsfb
# Borrar Tag Locales
git tag -d 19-10-20v0.0.5
# Borrar Tag Remoto
git push :refs/tags/19-10-20v0.0.5
git push origin :refs/tags/19-10-20v0.0.5
# Checkout Tags (deatached HEAD state)
git checkout 19-10-20v0.05
```
[*doc*](https://git-scm.com/book/en/v2/Git-Basics-Tagging)
----- -----
**Ir a:** **Ir a:**