Does Github have a view that shows diffs between file versions?

白昼怎懂夜的黑 提交于 2019-12-30 15:43:11

问题


I'm looking for a view that highlights changes to files, similar to the changes you can see viewing the Edits button for an SO item, or the history of a wiki page.


回答1:


For example https://github.com/clojure/clojure/commit/c89bf2e9bcfc1bca62e36dee2d78a48f8c38c15c

You are looking for 'diffs' aka 'changesets'.




回答2:


Note: the change set view not only offer a diff (line by line or side-by-side), it now (Sept. 4th 2014) offer a word-by-word diff.

See:

"Better Word Highlighting in Diffs"

Commits, compare views, and pull requests now highlight individual changed words instead of the entire changed section, making it easier for you to see exactly what’s been added or removed.




回答3:


See also comparing commits across time.



来源:https://stackoverflow.com/questions/11479516/does-github-have-a-view-that-shows-diffs-between-file-versions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!