Export change log from commit on GitHub

I have a collaborator who is not GH-friendly and is unlikely to become one in the near future.

I would like to show him step-by-step the changes I have made to the document, and a comparison of the commit is the perfect way to do this.

But they do not have an account, and the repository (and will remain) is closed.

Is there a way to export the track change log from GitHub to another format that could be sent faster to my co-author?

+8
git github
source share
4 answers

So, for color output, you need an additional tool, for example aha - it ansi to html adapter. The final version may look like this. git log -p -n 2 --color=always | aha --black > output.html

+4
source share

If you like the difference on GitHub, you can view it on GitHub from your browser, use the "save page" page in the browser to get the HTML file to send to your co-author.

To get the all-in-one option from GitHub, add /compare to the URL of your repository (more info on the GitHub Documentation ), then select the view you like and save it in HTML.

+1
source share

You can add .patch to any valid link /{org}/{repo}/compare/{revision range} to get a log output with metadata fixing and differences, for example. https://github.com/dahlbyk/posh-git/compare/5ed5c05...c39da78.patch . You can also add .patch to any single commit, for example. https://github.com/dahlbyk/posh-git/commit/c39da78.patch .

0
source share
 git diff --color > file.txt 

Open file in Sublime

-one
source share

All Articles