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.

  • undefined method `propfind' for ActionDispatch::Routing::Mapper
  • What's the fastest way to get a private Maven Repository up and running?
  • How does rebasing master on a “remote” local branch works?
  • Gitlab: no user or key was provided
  • convert current git repo to one compatible with git-buildpackage
  • How do I push my git repository to dokku?
  • 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?

  • ExecJS::ProgramError: Unexpected token punc «(», expected punc «:» when running rake assets:precompile on production
  • git: ignoring a file which *is* version controlled
  • How do I rewrite committer names in a git repository?
  • How to truncate git history before a specific commit?
  • JavaScript dependency management without NodeJS
  • Git line endings after normalization
  • 4 Solutions collect form web for “Exporting the change log from a commit on GitHub”

    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.

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

    git diff --color > file.txt

    Open file in Sublime

    Git Baby is a git and github fan, let's start git clone.