Back to front pageView on Hacker News (opens in a new tab)Show HN: Quickly browse the history of any GitHub file (opens in a new tab)githistory.xyz407 pointsby pomber (on Hacker News)7 years agogithistory.xyz (opens in a new tab)Git HistoryQuickly browse the history of a file from GitHub, GitLab, Bitbucket or any git repositoryComments (76) 37 threadsShow all commentsShowing thread 12 of 37[-]linkmotif7 years ago2 replies#Not to be that guy but: git log -p $file. Works great IMO.[-]pault7 years ago1 reply#Just the other day I had a coworker freak out when he saw me do this. It baffles me how a professional developer could use git for years and never read the manual.linkmotif7 years ago#yep. Or even just some blog posts or whatever. Git is the worst-presented tool I think, it’s a shame.[-]u801e7 years ago1 reply#That will show you the diffs, but if you want to see the files side by side, you could do something like: diff -y <(first_sha1:path/to/file) <(second_sha1:path/to/file)u801e7 years ago#The command should actually read: diff -y <(git show first_sha1:path/to/file) <(git show second_sha1:path/to/file)
Show HN: Quickly browse the history of any GitHub file (opens in a new tab)githistory.xyz407 pointsby pomber (on Hacker News)7 years ago
pault7 years ago1 reply#Just the other day I had a coworker freak out when he saw me do this. It baffles me how a professional developer could use git for years and never read the manual.
linkmotif7 years ago#yep. Or even just some blog posts or whatever. Git is the worst-presented tool I think, it’s a shame.
u801e7 years ago1 reply#That will show you the diffs, but if you want to see the files side by side, you could do something like: diff -y <(first_sha1:path/to/file) <(second_sha1:path/to/file)
u801e7 years ago#The command should actually read: diff -y <(git show first_sha1:path/to/file) <(git show second_sha1:path/to/file)
Comments (76) 37 threads
Show all comments
Showing thread 12 of 37