So me and a friend have been working on a project. Most of the time merges are painless as we generally work in different areas.
Recently we have been running into eachother more and more creating nasty merges (deadlines).
So we began investigating ways to see what a merge would do. I found a way to use git diff:
git diff mybranch...hisbranch
This gives pretty good results. The problem is, since that it uses the last common ancestor, and that ancestor is getting farther and farther back there is a lot of junk in the merge that hasn't been changed in either of our branches.
So I'm wondering is there a way to visualize exactly what a merge would do.
I've tried:
git diff $(git-merge mybranch hisbranch) hisbranch
Which seems to work ok, but I want to visualize the merge the other way so I tried:
git diff $(git-merge hisbranch mybranch) mybranch
But in this case git-merge: command not found
Does anyone know of a good way to get a diff of two branches showing what a merge would introduce? Maybe highlight conflicts?
If not, is there any visual tool that will allow one to manually do a commit, so one can choose what version of the code is the best.
git merge
. – Technocracy