We use git to store source code and use master/release/develop as main branches. Normally we create new branch to add new feature and then merge to develop and release. But when production needs immediate fix, we change code directly in prod and create hotfix branch which is then merged with all 3 main branches.
I would like to compare these uncommitted changes in prod with git, especially with release and develop branches which will become new master one day - just to be sure that no one forgot to commit some change from prod.
Manually I can use git diff and compare whether it was merged with release branch but it's not fast enough and it's manual.
Can you help me how to compare uncommitted changes with git content?