2

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
  • 12,696
  • 10
  • 51
  • 65
jdog
  • 9,794
  • 23
  • 80
  • 155
  • 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

3

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
  • 12,696
  • 10
  • 51
  • 65
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
  • 9,409
  • 3
  • 29
  • 52