How to see the diff between my current branch and main including committed code

  • I’m using VS code.
  • I pull from origin and update main branch.
  • I branch off it and create a new branch.
  • I do my work, and commit periodicially.
  • I want to be able to see the diff between main and my branch including all committed changes.
  • Either I want to be able to turn this on/off or have it as default diff view.

Is it possible?

I can always push my branch to origin and create a draft Pull Request to see my changes against main branch, but I want to do it in VS Code.

The reason for this is that I sometimes come back to a branch after a some time (perhaps a code review comes back), and I want to see all the changes on this branch, so I can undo them, or add new changes in, given what I’ve already changed.