MichaelChirico MichaelChirico - 1 year ago 56
Git Question

Exporting the change log from a commit on GitHub

I've got a collaborator that's not GH-friendly and not likely to become so in the near future.

I'd like to show him line-by-line the changes I've made to a paper, and the commit comparison is the perfect way to do so.

But they've no account and the repository is (and will remain) private.

Is there any way to export the track changes log from GitHub to another format which could be sent to my collaborator more readily?

Answer Source

So for the colored output you need some additional tool like aha - it's ansi to html adapter. The final version might look like this. git log -p -n 2 --color=always | aha --black > output.html