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?
Tower allows you to export a project's complete file tree at any given revision. To do so, right-click the revision in a commit listing and choose Export Files from <commit hash>… from the contextual menu.
In Excel, on Ribbon, click Data > Get Data > From JSON. In dialog box, enter API URL ... in format similar to (add parms as you wish): https://api.github.com/repos/{owner}/{repo}/issues. A dialog box labeled "Access Web content" will appear. On the left-hand side, click the Basic tab.
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
If you like the GitHub diff, you can view it on GitHub from your browser, use your browser's "save page" to get an HTML file to send to your collaborator.
To get an all-in-one diff from GitHub, append /compare
to the URL of your repository (more details GitHub's documentation). Then pick the view you like, and save it to HTML.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With