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/11/13 12:40] javiinformatica:git [2019/12/30 19:07] – [Añadir rama branch] jose
Line 45: 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
 +Listar ramas:
 +<code>
 +git branch -a
 +  master
 +* test
 +  remotes/origin/HEAD -> origin/master
 +  remotes/origin/master
 +  remotes/origin/test
 +</code>
 +Cambiar de rama:
 +<code>
 +git checkout master
 +A Dockerfile_ok
 +A Dockerfile_test
 +Switched to branch 'master'
 +Your branch is up to date with 'origin/master'.
 +</code>
  
 ===== Servidor git acceso claves ssh ===== ===== Servidor git acceso claves ssh =====
informatica/git.txt · Last modified: 2022/01/06 20:19 by jose