git diff when you have a file with the same name as a branch

Developer from somewhere

Let’s say you have a file called potato, and a branch called potato. If you want to see a diff against the branch called potato you’d run this:

git diff potato --

If you want to see a diff of the file potato:

git diff -- potato