No ha concluido su fusión (existe la CABEZA de fusión)
Hice una rama llamada 'f' e hice un checkout a master. Cuando probé el comando git pull
recibí este mensaje:
You have not concluded your merge (MERGE_HEAD exists).
Please, commit your changes before you can merge.
Cuando pruebo el git status
, me dio lo siguiente:
On branch master
# Your branch and 'origin/master' have diverged,
# and have 1 and 13 different commit(s) each, respectively.
#
# Changes to be committed:
#
# modified: app/assets/images/backward.png
# modified: app/assets/images/forward.png
# new file: app/assets/images/index_background.jpg
# new file: app/assets/images/loading.gif
# modified: app/assets/images/pause.png
# modified: app/assets/images/play.png
# new file: app/assets/javascripts/jquery-ui-bootstrap.js
# new file: app/assets/stylesheets/jquery-ui-bootstrap.css
# modified: app/controllers/friends_controller.rb
# modified: app/controllers/plays_controller.rb
# modified: app/mailers/invite_friends_mailer.rb
# modified: app/mailers/send_plays_mailer.rb
# modified: app/mailers/shot_chart_mailer.rb
# modified: app/views/friends/show_plays.html.erb
# modified: app/views/layouts/application.html.erb
# modified: app/views/plays/_inbox_table.html.erb
# modified: app/views/plays/show.html.erb
# modified: app/views/welcome/contact_form.html.erb
# modified: app/views/welcome/index.html.erb
# modified: log/development.log
# modified: log/restclient.log
# new file: tmp/cache/assets/C1A/C00/sprockets%2Fb7901e0813446f810e560158a1a97066
# modified: tmp/cache/assets/C64/930/sprockets%2F65aa1510292214f4fd1342280d521e4c
# new file: tmp/cache/assets/C73/C40/sprockets%2F96912377b93498914dd04bc69fa98585
# new file: tmp/cache/assets/CA9/090/sprockets%2Fa71992733a432421e67e03ff1bd441d8
# new file: tmp/cache/assets/CCD/7E0/sprockets%2F47125c2ebd0e8b29b6511b7b961152a1
# modified: tmp/cache/assets/CD5/DD0/sprockets%2F59d317902de6e0f68689899259caff26
# modified: tmp/cache/assets/CE3/080/sprockets%2F5c3b516e854760f14eda2395c4ff2581
# new file: tmp/cache/assets/CED/B20/sprockets%2F423772fde44ab6f6f861639ee71444c4
# new file: tmp/cache/assets/D0C/E10/sprockets%2F8d1f4b30c6be13017565fe1b697156ce
# new file: tmp/cache/assets/D12/290/sprockets%2F93ae21f3cdd5e24444ae4651913fd875
# new file: tmp/cache/assets/D13/FC0/sprockets%2F57aad34b9d3c9e225205237dac9b1999
# new file: tmp/cache/assets/D1D/DE0/sprockets%2F5840ff4283f6545f472be8e10ce67bb8
# new file: tmp/cache/assets/D23/BD0/sprockets%2F439d5dedcc8c54560881edb9f0456819
# new file: tmp/cache/assets/D24/570/sprockets%2Fb449db428fc674796e18b7a419924afe
# new file: tmp/cache/assets/D28/480/sprockets%2F9aeec798a04544e478806ffe57e66a51
# new file: tmp/cache/assets/D3A/ED0/sprockets%2Fcd959cbf710b366c145747eb3c062bb4
# new file: tmp/cache/assets/D3C/060/sprockets%2F363ac7c9208d3bb5d7047f11c159d7ce
# new file: tmp/cache/assets/D48/D00/sprockets%2Fe23c97b8996e7b5567a3080c285aaccb
# new file: tmp/cache/assets/D6A/900/sprockets%2Fa5cece9476b21aa4d5f46911ca96c450
# new file: tmp/cache/assets/D6C/510/sprockets%2Fb086a020de3c258cb1c67dfc9c67d546
# new file: tmp/cache/assets/D70/F30/sprockets%2Facf9a6348722adf1ee7abbb695603078
# new file: tmp/cache/assets/DA3/4A0/sprockets%2F69c26d0a9ca8ce383e20897cefe05aa4
# new file: tmp/cache/assets/DA7/2F0/sprockets%2F61da396fb86c5ecd844a2d83ac759b4b
# new file: tmp/cache/assets/DB9/C80/sprockets%2F876fbfb9685b2b8ea476fa3c67ae498b
# new file: tmp/cache/assets/DBD/7A0/sprockets%2F3640ea84a1dfaf6f91a01d1d6fbe223d
# new file: tmp/cache/assets/DC1/8D0/sprockets%2Fe5ee1f1cfba2144ec00b1dcd6773e691
# new file: tmp/cache/assets/DCC/E60/sprockets%2Fd6a95f601456c93ff9a1bb70dea3dfc0
# new file: tmp/cache/assets/DF1/130/sprockets%2Fcda4825bb42c91e2d1f1ea7b2b958bda
# new file: tmp/cache/assets/E23/DE0/sprockets%2Fb1acc25c28cd1fabafbec99d169163d3
# new file: tmp/cache/assets/E23/FD0/sprockets%2Fea3dbcd1f341008ef8be67b1ccc5a9c5
# modified: tmp/cache/assets/E4E/AD0/sprockets%2Fb930f45cfe7c6a8d0efcada3013cc4bc
# new file: tmp/cache/assets/E63/7D0/sprockets%2F77de495a665c3ebcb47befecd07baae6
# modified: tmp/pids/server.pid
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# Coachbase/
# log/development.log.orig
# log/restclient.log.orig
¿Qué debo hacer?
9 answers
OK. El problema es que su extracción anterior no se fusionó automáticamente y pasó al estado de conflicto. Y el conflicto no se resolvió correctamente antes de la siguiente tirón.
-
Deshacer la fusión y tirar de nuevo.
Para deshacer una fusión:
git merge --abort
[Desde la versión 1.7.4 de git]git reset --merge
[versiones anteriores de git] Resolver el conflicto.
No olvides agregar y confirmar la fusión.
git pull
ahora debería funcionar fino.
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
2018-04-09 20:14:04
Si está seguro de que ya ha resuelto todos los conflictos de fusión:
rm -rf .git/MERGE*
Y el error desaparecerá.
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
2018-07-11 20:01:25
Creo que vale la pena mencionar que hay numerosos escenarios en los que el mensaje You have not concluded your merge (MERGE_HEAD exists)
podría ocurrir, porque muchas personas probablemente han llegado a esta página después de buscar dicho mensaje. La resolución dependerá de cómo llegaste allí.
git status
siempre es un punto de partida útil.
Si ya ha fusionado el contenido a su satisfacción y todavía está recibiendo este mensaje, podría ser tan simple como hacer
git add file
git commit
Pero de nuevo, realmente depende de la situación. Es una buena idea entender los conceptos básicos antes de intentar nada (mismo enlace publicado por Terence): Git-Conflictos de fusión básicos
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
2014-07-18 04:45:59
El problema es que ha iniciado una fusión y todavía hay conflictos sin resolver.
La solución fácil es cancelar la fusión actual y comenzar de nuevo.
Simplemente ejecute git merge --abort
y tire de nuevo
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-08-11 14:55:25
Resolví conflictos y también cometí, pero aún así obtengo este mensaje de error en git push
Se han solucionado todos los conflictos, pero aún se está fusionando.
(use "git commit" para concluir merge)
Hice estos pasos para resolver el error:
rm -rf .git/MERGE*
git pull origin branch_name
git push origin branch_name
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
2017-05-11 15:55:10
Intente cambiar cualquier archivo temporal. Como simplemente eliminar cualquier espacio o añadir espacio y luego confirmar y empujar ese archivo.
Git add'temporary_change_file'
Git commit-m"git issue resolving"
Git push origin develop
Y luego prueba git pull,
Git pull origin develop
Espero que esto pueda ayudarte.
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
2018-05-10 05:12:04
En mi caso, tuve una selección de cereza que produce una serie de Conflictos de fusión, por lo que decidí no completar la selección de cereza. Descarté todos mis cambios. Al hacerlo me puso en un estado donde recibí el siguiente error:
No ha concluido su fusión (MERGE_HEAD existe
Para solucionar el problema realicé el siguiente comando de git que solucionó el problema.
git cherry-pick --abort
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
2017-09-29 15:55:19
El mejor enfoque es deshacer la fusión y realizar la fusión de nuevo. A menudo se estropea el orden de las cosas. Trata de arreglar los conflictos y métete en un lío.
Así que deshacer hacerlo y fusionar de nuevo.
Asegúrese de que tiene la configuración de herramientas de diferencias adecuada para su entorno. Estoy en un mac y uso DIFFMERGE. Creo que DIFFMERGE está disponible para todos los entornos. Las instrucciones están aquí: Instalar DIFF Merge en un MAC
Tengo esto útil resolver mi conflictos: Git Basic-Merge-Conflicts
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-11-14 06:54:33
Esto funcionó para mí:
git log
`git reset --hard <089810b5be5e907ad9e3b01f>`
git pull
git status
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
2016-12-22 21:24:15