I followed Jörg W Mittag's answer in this post and have configured meld as the difftool in my git. Now I can view and compare differences of a file in different branches perfectly with this command:
git checkout branch1
git difftool branch1:file.f90 branch2:file.f90
I executed the above command, made and saved changes in meld. However, when I check the file using:
emacs file.f90
The changes I made earlier in meld are not saved at all. I don't understand why this is so; I must have not entirely correctly configured meld as the diff tool. Could any one help me with this problem? Thanks!!