If you do git log --patch -- path/to/file
, you will get the history of the file along with a diff of all the changes made to it with each commit, like this:
If you're on Linux, Then install TIG as:
sudo apt-get install tig
and then,
tig path/to/file/
It'll show you all the commits and their respective changes
Talat Parwez
Based on the answers above and my own attempts to find this exact feature, it appears the correct answer to this question is no.
Edit: before you down vote, maybe try and prove me wrong. Sometimes the correct answer isn't what you want to hear.
The following URL will show all the commits for a single file in a format similar to git log -p
:
http://github.com/<username>/<project>/commits/<branch>/<path/to/file>
...where:
<username>
is the username of the person that owns the repo<project>
is the repo name<branch>
can be 'master' or any other branch<path/to/file>
is hopefully self-explanatoryPicking at (somewhat) random, here is an example from the vim-fugitive repo.
An alternative to the direct URL answer (which BTW is perfectly correct) using GitHub's interface is to: