¿Cómo obtengo la lista de combinación con git?

¿Cómo obtengo la lista de combinación con git?

Cuando intento fusionar un archivo, aparece

$ git merge origin/develop
Removing t/table_statistic_grains_test.t
Removing t/table_statistic_grains_calllog.t
Removing t/table_statistic_grains_accession.t
Auto-merging t/table_donor_document.t
Auto-merging install.sh
CONFLICT (content): Merge conflict in install.sh

Sin embargo, cuando pierdo esa lista e intento finalizar la fusión, todo lo que obtengo es:

$ git merge
error: 'merge' is not possible because you have unmerged files.
hint: Fix them up in the work tree,
hint: and then use 'git add/rm <file>' as
hint: appropriate to mark resolution and make a commit,
hint: or use 'git commit -a'.
fatal: Exiting because of an unresolved conflict.

¿Cómo recupero esa lista sin --abortintentar restaurarla merge?

Respuesta1

Utilice git mergetool en el archivo "install.sh" o edítelo en su editor para intentar fusionar el archivo manualmente. Después de eso, debes agregar el archivo combinado al índice y confirmarlo. Ahora deberías tener la oportunidad de hacer otras cosas.

git mergetool install.sh
git add install.sh
git commit -a

información relacionada