
ファイルを結合しようとすると、
$ 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
しかし、そのリストを失くしてマージを終了しようとすると、
$ 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.
--abort
再試行せずにそのリストを取り戻すにはどうすればよいですかmerge
?
答え1
「install.sh」ファイルで git mergetool を使用するか、エディターで編集して手動でファイルをマージしてみてください。その後、マージされたファイルをインデックスに追加してコミットする必要があります。これで、他の作業を行う機会が得られるはずです。
git mergetool install.sh
git add install.sh
git commit -a