【GitHub Blame - View all changes of a file】

A Quick Question

如何在GitHub查看一個文件的所有提交記錄?

比如如下代碼:
https://github.com/elastic/elasticsearch/commits/master/libs/x-content/src/main/java/org/elasticsearch/common/xcontent/XContentBuilder.java

A Quicker Answer

搏一搏,單車變摩托:commits -> blame

https://github.com/elastic/elasticsearch/commits/master/libs/x-content/src/main/java/org/elasticsearch/common/xcontent/XContentBuilder.java

  • 見證奇蹟的時刻~

https://github.com/elastic/elasticsearch/blame/master/libs/x-content/src/main/java/org/elasticsearch/common/xcontent/XContentBuilder.java

View a commit in Unified mode
Unified

View a commit in Split mode
Split

Reference

https://help.github.com/en/articles/tracking-changes-in-a-file
https://github.blog/2017-01-18-navigate-file-history-faster-with-improved-blame-view/
https://git-scm.com/docs/git-blame

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章