Diff between branches

Okay so I have a file main.component.ts and I want to see the diff between it on the branch of my working copy and the development branch. I’m trying the following command.

git diff development -- main.component.ts

But I suspect there maybe something wrong because it’s saying there is no diff and I know that can’t be right.

It works for me…are you on the other branch? If I’m on master then git diff other -- file.js will show me the diff on the other branch.

Are you comparing locally, or trying to diff your remote / upstream branch?

1 Like