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)
Written by Jon Phenow
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#