How can I check which commits have not been pushed to origin? August 24, 2023 by Tarik git diff --stat origin/master will show the changed files. git log origin/master..master will show the commits.