Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to install Meld on Windows and getting it set up with Git
After installing it http://sourceforge.net/projects/meld-installer/
I had to tell git where it was:
git config --global merge.tool meld
git config --global diff.tool meld
git config --global mergetool.meld.path “C:\Program Files (x86)\Meld\meld\meld.exe”
And that seems to work. Both merging and diffing with “git difftool” or “git mergetool”
@hamidyfine

This comment has been minimized.

Copy link

@hamidyfine hamidyfine commented May 1, 2016

Thanks...Thanks a lot.... I'm searching for this solution for hours!!!! You saved me... Thanks

@jonahgraham

This comment has been minimized.

Copy link

@jonahgraham jonahgraham commented Jun 30, 2016

Thanks. BTW the meld-installer sourceforge package is no longer updated, the new installers are available here: http://meldmerge.org/

@Edtcetera

This comment has been minimized.

Copy link

@Edtcetera Edtcetera commented Feb 6, 2017

Thank you, this worked for me

@leandroruel

This comment has been minimized.

Copy link

@leandroruel leandroruel commented Feb 14, 2017

Windows Help:
if someone is having errors on git bash like "bad line in .gitconfig" just make a small change in your .gitconfig file, go to C:\Users\YourComputerUserName\.gitconfig

and change the lines below
from:

[mergetool "meld"]
path = “C:\Program Files (x86)\Meld\meld\meld.exe”

to:

[mergetool "meld"]
	cmd = '\"/c/Program Files (x86)/Meld/meld/meld.exe\" $PWD/$LOCAL $PWD/$BASE $PWD/$REMOTE --output=$PWD/$MERGED'

😃

@jotadepicas

This comment has been minimized.

Copy link

@jotadepicas jotadepicas commented Oct 29, 2017

If you are using git bash under Windows, the git config sentence fails.
I don't know how to reference directory "Program Files (x86)" properly from git bash and make it work (it has spaces, parenthesis, you name it), so I neded up re-installing meld to a more linux-friendly path like "c:\Meld" and doing a:

git config --global mergetool.meld.path '/c/Meld/meld/meld.exe

@goldtreefrog

This comment has been minimized.

Copy link

@goldtreefrog goldtreefrog commented Nov 19, 2017

Try single quotes instead of double quotes. Seemed to work for me.

@d-korni

This comment has been minimized.

Copy link

@d-korni d-korni commented Dec 1, 2017

Hi guys,

The website says that this is no longer supported due to the new builds having their own installers.
On the other side, support for windows installers in latest versions is dropped.

Can somebody confirm that this will work for the latest stable windows build?
Also, will this create a shell entry on right click, or do I need to follow some custom way?

Appreciate any help! : )

UPDATE: For any people in the future, I decided to go down a path that seemed simpler for me, and will also be easier to include updates with. I've downloaded and extracted the source code, and I have installed Python 3.4 (isn't compatible with my 3.6 version), and PyObject as suggested from the website. I've then made a batch script, and added it to my right-click mouse menu.

So rather than installing, I am running it from the source files. Updating will be as easy as replacing the source files folder and updating the script. Hope it helps some people. Cheers

@TomyLobo

This comment has been minimized.

Copy link

@TomyLobo TomyLobo commented Dec 21, 2017

@deweysia

This comment has been minimized.

Copy link

@deweysia deweysia commented Oct 23, 2018

This worked. Although the directory structure has changed so pay attention to the path. Thanks a lot!

@javgo

This comment has been minimized.

Copy link

@javgo javgo commented Jul 24, 2019

Thanks for the info!

Currently Meld is by default installed in C:\Program Files (x86)\Meld\Meld.exe so you may set it like this:

git config --global mergetool.meld.path 'C:\Program Files (x86)\Meld\Meld.exe'

@madphysicist

This comment has been minimized.

Copy link

@madphysicist madphysicist commented Sep 27, 2019

I am having trouble setting this up. My errors look exactly like https://stackoverflow.com/q/58100654/2988730. It appears that GTK is not getting picked up for some reason.

@EzequielBurg

This comment has been minimized.

Copy link

@EzequielBurg EzequielBurg commented Feb 27, 2020

thank you. This save me

@mangelozzi

This comment has been minimized.

Copy link

@mangelozzi mangelozzi commented Apr 30, 2020

I added this to my path (env variable):

C:\Program Files (x86)\Meld

That way I can share my git config between windows and ubuntu (dont need to set mergetool.meld.path)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment