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
informatica:git [2020/10/28 09:27] – [Comandos sueltos] javiinformatica:git [2024/10/17 14:56] (current) jose
Line 238: Line 238:
 git push -u origin master git push -u origin master
 </code> </code>
 +
 +====== Deshacer un commit manteniendo cambios en local ======
 +Si hacemos un commit antes de un pull y en el servidor hay cambios pero nuestro commit no afecta a esos cambios, para evitar conflictos, deshacemos el commit pero manteniendo los cambios en local:
 +  git reset --soft HEAD^
 +
  
  
  
informatica/git.1603877246.txt.gz · Last modified: 2020/10/28 09:27 by javi