Skip to content

Instantly share code, notes, and snippets.

@hofnerb
Last active June 29, 2026 06:54
Show Gist options
  • Select an option

  • Save hofnerb/01be4c44a904b330a33f to your computer and use it in GitHub Desktop.

Select an option

Save hofnerb/01be4c44a904b330a33f to your computer and use it in GitHub Desktop.
Graphical differences of branches with meld
@javiermarcon

javiermarcon commented Sep 16, 2024

Copy link
Copy Markdown

Thanks, but I always get an error. Do you know what am I doing wrong?

`javier@jm:~/proyectos/emprendimientos/marce/voys/fuente/voys_frontend$ git config --global diff.tool meld

javier@jm:~/proyectos/emprendimientos/marce/voys/fuente/voys_frontend$ git diff

javier@jm:~/proyectos/emprendimientos/marce/voys/fuente/voys_frontend$ git difftool -d marcelo

fatal: argumento ambiguo 'marcelo': revisión desconocida o ruta fuera del árbol de trabajo.
Usa '--' para separar las rutas de las revisiones, de esta manera:
'git [<revisión>...] -- [...]'
error: error occurred running diff --raw

javier@jm:~/proyectos/emprendimientos/marce/voys/fuente/voys_frontend$ git difftool -d master..marcelo
fatal: argumento ambiguo 'master..marcelo': revisión desconocida o ruta fuera del árbol de trabajo.
Usa '--' para separar las rutas de las revisiones, de esta manera:
'git [<revisión>...] -- [...]'
error: error occurred running diff --raw

javier@jm:~/proyectos/emprendimientos/marce/voys/fuente/voys_frontend$ git difftool -d master marcelo
fatal: argumento ambiguo 'master': revisión desconocida o ruta fuera del árbol de trabajo.
Usa '--' para separar las rutas de las revisiones, de esta manera:
'git [<revisión>...] -- [...]'
error: error occurred running diff --raw
`

@hofnerb

hofnerb commented Sep 17, 2024

Copy link
Copy Markdown
Author

I am sorry. I cannot help you here either. I did not use these commands for quitre some time and only posted this here for my personal reference. Maybe try posting on stackoverflow?

@NH89

NH89 commented Jun 29, 2026

Copy link
Copy Markdown

Thank you for a very useful gist, especially because the search engines find it and it is correct.

If a user does not want to set Meld permanently as the default diff-tool, then the following single command is useful:

git difftool --tool=meld <branch1> <branch2>

https://git-scm.com/docs/git-difftool

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