使用GitHub.com查看文件的更改历史记录 [英] view the change history of a file using GitHub.com
问题描述
我发现这篇文章关于使用命令行,但我想知道是否可以在GitHub.com上的回购站中查看单个文件的文件更改历史记录?浏览器中的解决方案可以帮助我更好地在会议中说明团队成员的变化。 您可以查看更改历史记录点击历史记录按钮,或者通过向文件的URL添加提交
来创建文件。下面是在github的homebrew repo上的一个文件的样子:
https://github.com/mxcl/homebrew/commits/master/SUPPORTERS.md
要获得一个line-只需在 commit
之后添加要查看diff的提交的sha字符串,然后将其与您的文件名感兴趣。对于上面的同一个文件:
https://github.com/mxcl/homebrew/commit/288f001e924d5365b79c279e4478f372a04011ae#SUPPORTERS.md
I've found this post about using command line, but am wondering if it is possible to view the file change history of a single file in a repo on GitHub.com? An in-browser solution would help me to better illustrate changes to team members while in meetings.
You can view the change history of a file by clicking on the history button, or by adding commits
to the url of the file. Here is what it looks like for a file at the homebrew repo on github:
https://github.com/mxcl/homebrew/commits/master/SUPPORTERS.md
To get a line-by-line history, simply add the sha string of the commit for which you want to see the diff to the url after the word commit
, and then anchor it with the filename you are interested in. For the same file above:
https://github.com/mxcl/homebrew/commit/288f001e924d5365b79c279e4478f372a04011ae#SUPPORTERS.md
这篇关于使用GitHub.com查看文件的更改历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!