I want to do:
git log -p [path/to/file]
in GitHub because I want it to look pretty, and I want a link to send to someone else w/o the code.
Thanks!
Matt
I want to do:
git log -p [path/to/file]
in GitHub because I want it to look pretty, and I want a link to send to someone else w/o the code.
Thanks!
Matt
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: