I often use git rebase --interactive for cleaning up history. It happens there are mergeconflicts, or even if there are no conflicts, there are still merges. I'm always a bit scared that something has changed even though I only changed the order of the commits, squashed them etc.
I used to keep a backup copy of my working tree to paste over the new one. Then I looked at the commit window in gitg to see if everything was the same. This is a pain though and I stopped making backup copies.
Next I made a backup branch and I found that git diff backup-branch
works.
Now I tried with: (because I would like to stop making backup branches as well)
git --diff HEAD ORIG_HEAD
But that shows me changes, and when I look at the file in my working directory it looks like it hasn't changed.
What is the correct command for this scenario?