0

As I have found in the question: https://stackoverflow.com/a/4099805/5962966/

I can compare the files between two git branches by the following command, but How do I open the diff window in Meld and save the changes as well?

git diff mybranch master -- myfile.cs

Already tried but not working: https://stackoverflow.com/a/34119867/5962966

Milind Singh
  • 296
  • 6
  • 23
  • 1
    Possible duplicate of [How do I view 'git diff' output with my preferred diff tool/ viewer?](https://stackoverflow.com/questions/255202/how-do-i-view-git-diff-output-with-my-preferred-diff-tool-viewer) – Puddler Jul 12 '19 at 05:57

1 Answers1

1

Replace diff with difftool

git difftool mybranch master -- myfile.cs

If you only have meld installed git should use it as the default difftool. Regardless it should also give a prompt showing which tools are compatible and how to set the tool you wish to use.

Puddler
  • 2,619
  • 2
  • 17
  • 26