8

I can see how to view a specific revision and all revision diffs for a GitHub Gist, but do not see how to pick two revisions for comparison, like Wikipedia does. How can this be viewed?

0
8

There is currently no way via the GitHub web interface to see the diff between any two points of your gist revisions.

The alternative is to download the Gist and then reupload it to your main GitHub account as a full repository and then modify the URL as needed, like the following:

https://github.com/{username}/{repo-from-gist}/compare/{old-commit}..{commit}
0

You can also use the Diff for gist.github Chrome extension.

1
  • btw, to compare 2 forks, we just need to go on the fork and see the revisions, it will show the differences in a change log. Not as clear to read as downloading and comparing both files tho. Oct 31 at 20:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.