Git resolve conflict using --ours/--theirs for all files

前端 未结 6 679

Is there a way to resolve conflict for all files using checkout --ours and --theirs? I know that you can do it for individual files but couldn\'t f

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-22 17:27

    git checkout --[ours/theirs] . will do what you want, as long as you're at the root of all conflicts. ours/theirs only affects unmerged files so you shouldn't have to grep/find/etc conflicts specifically.

提交回复
热议问题