Git 如何完成或修改有关合并冲突的消息?

Git 如何完成或修改有关合并冲突的消息?,git,git-merge-conflict,Git,Git Merge Conflict,例如: git pull origin master From some.remo:some/repo * branch master -> FETCH_HEAD CONFLICT (content): Merge conflict in src/file_0 Auto-merging src/file_1 CONFLICT (content): Merge conflict in src/file_2 Automatic m

例如:

 git pull origin master            
From some.remo:some/repo
 * branch                master    -> FETCH_HEAD
CONFLICT (content): Merge conflict in src/file_0
Auto-merging src/file_1
CONFLICT (content): Merge conflict in src/file_2
Automatic merge failed; fix conflicts and then commit the result.
如何获得此输出并将我的添加到其中

我试图通过husky捡起一些git钩子,但没有发现任何合适或被滥用的东西

我想从输出中大致得到:

 git pull origin master            
From some.remo:some/repo
 * branch                master    -> FETCH_HEAD
CONFLICT (content): Merge conflict in src/file_0
Auto-merging src/file_1
CONFLICT (content): Merge conflict in src/file_2
Automatic merge failed; fix conflicts and then commit the result.

Conflicts list:
src/file_0
src/file_2

目前,我正在运行一个单独的命令来运行git pull,但这需要团队其他成员的培训,灵活性较差。

您首先需要解决冲突,然后执行git提交。默认消息将包含有冲突的文件列表。它不会逐字逐句地与git pull的输出完全相同,但它将包含相同的信息。

这并不能回答问题!OP正在寻找如何定制信息