3

I understand I can run a git command locally to see them in the terminal, but I want to see them visually on github. Is this possibly?

I want to be able to see the diff between two commits, NOT two branches.

Adil B
  • 14,635
  • 11
  • 60
  • 78
jdog
  • 10,351
  • 29
  • 90
  • 165
  • Possible duplicate of [How can I diff two branches in GitHub?](https://stackoverflow.com/questions/43552274/how-can-i-diff-two-branches-in-github) – phd May 07 '19 at 22:38
  • https://stackoverflow.com/search?q=%5Bgithub%5D+diff+two+commits – phd May 07 '19 at 22:39

2 Answers2

4

Yes - you can compare two commits via the compare UI:

https://github.com/orgname/reponame/compare/<hash1>...<hash2>

You can find the hash values by visiting the Commits tab and copying the commit hash for each commit you're interested in.

Adil B
  • 14,635
  • 11
  • 60
  • 78
2

To compare the two commits c3a414e and faf7c6f from the linguist repository go to https://github.com/github/linguist/compare/c3a414e..faf7c6f.

See Comparing Commits in the GitHub documentation.

michid
  • 10,536
  • 3
  • 32
  • 59