Last Updated: February 25, 2016
·
509
· jphenow

Get a list of files with conflicts

# ~/.gitconfig
[alias]
  cnf = !git ls-files -u | cut -f 2 | sort -u

Now you can:

$> git cnf
app/controllers/application_controller.rb
app/models/user.rb

I use vim as well so I often open all conflicts with:

$> vim -o $(git cnf)

1 Response
Add your response

I have this in my .gitconfig, it does the same thing I believe:

[alias]
  conflicts = diff --name-only --diff-filter=U
over 1 year ago ·