Last Updated: February 25, 2016
·
1.138K
· divoxx

Open all files with conflicts

Open all files that have a merge conflict on your editor.

git diff --name-only --diff-filter=U | xargs $EDITOR

1 Response
Add your response

This rocks! Except I get this error:

Vim: Warning: Input is not from terminal.

And then my terminal gets really messed up after I exit vim. This works better for me (bash):

vi $(git diff --name-only --diff-filter=U)

I made the following alias in my git config:

do = !"vim $(git diff --name-only)"
over 1 year ago ·