I would like to diff a particular file between 2 branches. I saw there is a difftool. But I tried and I'm not getting succeeded. I have a file called abc.cpp and 2 remote branches say May_Version and June_Version and my file is in the folder /xyz/tools. I tried like
git difftool origin/May_Version:xyz/tools/abc.cpp -- June_Version:xyz/tools/abc.cpp
with the above command it gives the following error
fatal: bad revision 'May_Version:xyz/tools/abc.cpp'
I tried
origin/May_Version:xyz/tools/abc.cpp June_Version:xyz/tools/abc.cpp
fatal: Path 'xyz/tools/abc/cpp' does not exist in May_Version.
Can someone tell me correct syntax?