Reinicie la resolución de conflictos en un solo archivo
En un git merge más grande con varios archivos en conflicto, marcé incorrectamente un archivo como resuelto (usando git add FILE
después de algunas ediciones)
Ahora me gustaría deshacer mi intento de resolución de conflictos y empezar de nuevo a resolver ese archivo.
¿Cómo puedo hacer eso?
126
Author: Steven Penny, 2013-01-19
2 answers
Encontré la solución aquí: http://gitster.livejournal.com/43665.html
git checkout -m FILE
Esto restaura el estado no resuelto, incluyendo toda la información sobre el padre y la base de fusión, lo que permite reiniciar la resolución.
220
Author: Alex Krauss,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-01-19 00:18:05
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-01-19 00:18:05
git reset HEAD FILE
Ejemplo
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
7
Author: Steven Penny,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-10-21 21:06:12
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-10-21 21:06:12