DEV Community

Dinesh Pandiyan
Dinesh Pandiyan

Posted on

What is your favourite git merge tool/strategy?

VSCode is my favourite editor. But while rebasing and resolving merge conflicts, I switch to Atom as their git integration is too damn good for resolving conflicts IMO. Just wondering what other tools/strategies devs use in general for resolving merge conflicts.

This is my usual flow

  1. Go to terminal and git rebase master
  2. When conflict occurs, I open Atom, resolve conflict and stage the file
  3. I come back to terminal and git rebase --continue

Latest comments (35)

Collapse
 
ekateri06940215 profile image
EkaterinaS

My favorite git merge tool is Code Compare
Code Compare can be integrated into a variety of version control systems that support external comparators. Code Compare extends VCS native comparison functionality with its advanced approach to file comparison and merging.

Collapse
 
psfeng profile image
Pin-Sho Feng

My favorite tools are TortoiseGit + Beyond Compare, but TortoiseGit only works on Windows. On Mac I use SourceTree with Beyond Compare as well.

Collapse
 
mattmattv profile image
Matthieu Vion

GitKraken may be an electron app, it works very well merge, conflict resolving, the only downside is that it does not sign commits with GPG /:

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€

I shout at people to stop them working on my files. πŸ˜† Just kidding.

Collapse
 
flexdinesh profile image
Dinesh Pandiyan

Been there. Done that. No regrets 😹

Collapse
 
jandedobbeleer profile image
Jan De Dobbeleer

Same, but replace Atom with Code πŸ€“

Collapse
 
adam_cyclones profile image
Adam Crockett πŸŒ€

Wasn't Vs a fork of Vs in the early days?

Collapse
 
yorodm profile image
Yoandy Rodriguez Martinez

Emacs + Magit, It's a really great tool even if you're and experienced git user

Collapse
 
tailcall profile image
Maria Zaitseva

Same here. Especially magit's interactive rebase makes rebasing so painless it always went flawlessly for me.

Collapse
 
coolgoose profile image
Alexandru Bucur

Are you using gitlens in VSCode ? It helps a lot on the normal git flow (including merges)

Collapse
 
vip3rousmango profile image
Al Romano

+1 for GitLens.

As Doruk says below it does have a bit of a learning curve but it's totally worth it.

I've uninstalled GitKraken now because of it.

Between the side-bar additions and the command palette items you should be able to git ninja your way out of most situations.

There is always Git in termial if you need to go full hacker mode. :)

Collapse
 
d0ruk profile image
Doruk Kutlu • Edited

+1 for gitlens

It has a learning curve, but once you invest the time, it's worth the savings.

Collapse
 
pratikaambani profile image
Pratik Ambani • Edited

Wait!!! Wait!!! Wait!!!

Guys, use smartgit, especially during merge and rebase.

Collapse
 
kunde21 profile image
Chad Kunde

magit (with evil-magit plugin)

It is, hands down, the best git UI/UX I've experienced. Advanced git operations become simple and obvious.

Collapse
 
titonobre profile image
Tito

Beyond Compare is the best tool I know for handling 3-way-merge.
I also use Fork and GitExtensions.