informatica:git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
informatica:git [2020/10/28 09:27] – [Comandos sueltos] javi | informatica:git [2024/10/17 14:56] (current) – jose | ||
---|---|---|---|
Line 238: | Line 238: | ||
git push -u origin master | git push -u origin master | ||
</ | </ | ||
+ | |||
+ | ====== 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