This is a quick note to compare across commits or folks.

Local terminal

git log  
  
# one line  
  
git log --pretty=oneline  

then compare 2 commits:

git diff a122 a123  

Tip after typing diff, press space 1 time and press tab 2 times: it will also show commit numbers (shorter).

Online:

Append /compare to your repository. The below samples are from https://docs.github.com/en/github/committing-changes-to-your-project/viewing-and-comparing-commits/comparing-commits#comparing-commits

Here are 2 common ones:

  1. Compare Commits

To compare commits c3a414e and faf7c6f: https://github.com/github/linguist/compare/c3a414e..faf7c6f

  1. Compare Across Folk

User octocat vs user octo-org

https://github.com/octocat/linguist/compare/master…octo-org:master

  1. Bonus:

It is very convenient to find an active fork among many idle folks with this online tool: https://andremiras.github.io/gitpop3