git diff

The git diff command is Git’s adaptation of the ancient Unix tool “diff”. This command will compare two different versions of a file. The most common use case would be to compare your uncommitted changes with the latest committed version before your commit it.