11

I recently made a commit to a repo on github and now when I want to see the differences, for one of the files all I get is:

1273 additions, 678 deletions not shown

What is the cause of this? How can I see the differences?

  • 1
    What commands are you using and what would you like to accomplish? – ralphtheninja Mar 21 '12 at 09:26
  • 1
    i am not using any commands, but the web interface itself. i want to see what the modifications to the file are –  Mar 21 '12 at 09:43
  • 1
    possible duplicate of [Large github commit diff not shown](http://stackoverflow.com/questions/9702795/large-github-commit-diff-not-shown) – ralphtheninja Mar 21 '12 at 11:41
  • 2
    very helpful deleting everything. i still don`t know what causes this and what i can do to prevent it in the future. sarcastic thanks! –  Mar 21 '12 at 12:19

3 Answers3

6

Github doesn't show large diffs probably because it is quite js-intensive and will likely freeze your browser. Solution would be to not rely on github for browsing diffs which you can see in any git-gui you have

e.g. tig is pretty handy.

$ tig commithash
Warren Weckesser
  • 102,583
  • 19
  • 173
  • 194
AD7six
  • 59,391
  • 12
  • 88
  • 120
1

You can check the diff from your local machine if GitHub cannot show it to you

 $ git show the-commit-id path/to/the/file
fajran
  • 2,557
  • 21
  • 13
0

I was looking for that answer myself, github fails to show me large diffs, so the solution was GitHub Desktop.

Nomura
  • 1
  • 1