views:

316

answers:

2

i'm looking for a console UI tool for resolving merge conflicts in git... like vimdiff but 'easier'

A: 

This isn't exactly what you're looking for, but git stash is very helpful for resolving merges. Just do:

git stash create
git pull
git stash pop <stashnum>

Where <stashnum> is the output from git stash create

adam_0
i use git stash a lot, thanks.is there a simple way to know which files will be updated in the next 'git pull' ?
arod
`git status` should show you what will be updated.
adam_0
A: 

If you're on OS X, I'd recommend FileMerge. It has a great interface and is quite handy.

git config --global merge.tool opendiff

Then, whenever you have a merge conflict, just run

git mergetool
Dan Loewenherz