
Quando tento mesclar um arquivo, recebo
$ 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
Porém, quando perco aquela lista e tento terminar a mesclagem, tudo que consigo é,
$ 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.
Como faço para recuperar essa lista sem --abort
uma tentativa de re merge
?
Responder1
Use git mergetool no arquivo "install.sh" ou edite-o em seu editor para tentar mesclar o arquivo manualmente. Depois disso, você deve adicionar o arquivo mesclado ao índice e confirmá-lo. Agora você deve ter oportunidade de fazer outras coisas.
git mergetool install.sh
git add install.sh
git commit -a