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
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