informatica:git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatica:git [2017/09/18 14:19] – jose | informatica:git [2019/11/13 12:40] – javi | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== git ====== | ====== git ====== | ||
+ | |||
+ | ===== Tags ===== | ||
+ | |||
+ | 1. Listar los commits de un repositorio | ||
+ | |||
+ | < | ||
+ | git log --pretty=oneline | ||
+ | </ | ||
+ | |||
+ | 2. Marcar con una etiqueta (en este ejemplo " | ||
+ | |||
+ | < | ||
+ | git tag -a v1.0 947c168ba5cc2c40dabe15b1a140e0a90f29f3c3 | ||
+ | </ | ||
+ | |||
+ | 3. Subir las etiquetas al repositorio remoto: | ||
+ | |||
+ | < | ||
+ | git push origin v1.0 | ||
+ | </ | ||
===== Iniciar repositorio en remoto ===== | ===== Iniciar repositorio en remoto ===== | ||
Line 95: | Line 115: | ||
< | < | ||
git push --tags origin | git push --tags origin | ||
+ | </ | ||
+ | * Descargar un tag determinado: | ||
+ | < | ||
+ | git clone -b ' | ||
</ | </ | ||
Line 153: | Line 177: | ||
==== GITHUB ==== | ==== GITHUB ==== | ||
Vamos a Settings "SSH and GPG keys" y añadimos la clave. | Vamos a Settings "SSH and GPG keys" y añadimos la clave. | ||
+ | |||
+ | Creamos el repositorio en GITHUB. Mejor no inicializar con README.md Allí pone las instrucciones: | ||
+ | < | ||
+ | git init . | ||
+ | git add . | ||
+ | git commit -m " | ||
+ | git remote add origin git@github.com: | ||
+ | git push -u origin master | ||
+ | </ | ||
informatica/git.txt · Last modified: 2022/01/06 20:19 by jose