¿Cómo crear parches entre dos etiquetas con múltiples confirmaciones entre ellas?
Tengo dos etiquetas en mi git en la misma rama. Hay al menos 5-6 commits entre ellos. ¿Cómo puedo crear un único parche entre las dos etiquetas para que se pueda aplicar a un repositorio de GitHub?
35
Author: Patrick Sanan, 2012-01-31
2 answers
Puede crear un único diff (parche) entre dos etiquetas usando el siguiente
$ git diff tag1 tag2 -- > the-patch.diff
Reemplace tag1
y tag2
a las etiquetas que desee.
52
Author: fajran,
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
2012-01-31 12:08:27
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
2012-01-31 12:08:27
Puede crear un único parche para varias confirmaciones usando la opción --stdout
y dirigiendo la salida a un archivo:
git checkout tag2
git format-patch tag1 --stdout > patch1to2.patch
35
Author: Patrick Sanan,
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
2012-12-10 23:58:37
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
2012-12-10 23:58:37