I am trying to show the difference between the last commit and the previous:
git diff HEAD^ HEAD <filename>
but it doesnβt display anything. I know that there is a difference between the two commits.
What am I doing wrong and how to fix it?
PS: I feel that this has been discussed many times, but for some reason cannot find a useful link.
source share