User Tools

Site Tools


informatica:git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
informatica:git [2019/02/26 12:35] joseinformatica:git [2019/12/30 19:03] – [Subir un cambio] jose
Line 1: Line 1:
 ====== git ====== ====== git ======
 +
 +===== Tags =====
 +
 +1. Listar los commits de un repositorio
 +
 +<code>
 +git log --pretty=oneline
 +</code>
 +
 +2. Marcar con una etiqueta (en este ejemplo "v1.0") el commit deseado:
 +
 +<code>
 +git tag -a v1.0 947c168ba5cc2c40dabe15b1a140e0a90f29f3c3
 +</code>
 +
 +3. Subir las etiquetas al repositorio remoto:
 +
 +<code>
 +git push origin v1.0
 +</code>
  
 ===== Iniciar repositorio en remoto ===== ===== Iniciar repositorio en remoto =====
Line 25: Line 45:
   git commit -m "cambio realizado"   git commit -m "cambio realizado"
   git push   git push
 +===== Añadir rama branch =====
 +  git pull
 +  git checkout -b test
 +  git push origin test
  
 ===== Servidor git acceso claves ssh ===== ===== Servidor git acceso claves ssh =====
Line 95: Line 119:
 <code> <code>
 git push --tags origin git push --tags origin
 +</code>
 +  * Descargar un tag determinado:
 +<code>
 +git clone -b 'v1.0' --single-branch --depth 1 https://github.com/Kedu-SCCL/redmine-automation
 </code> </code>
  
informatica/git.txt · Last modified: 2022/01/06 20:19 by jose