Last active
August 29, 2015 14:08
-
-
Save raedatoui/010ec9ba41aaaec0789a to your computer and use it in GitHub Desktop.
Save colorized git graph from terminal to html file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inigo:tmp> script | |
Script started, file is typescript | |
inigo:tmp> git --no-pager log --pretty=format:"" --graph | |
# | |
# lots of colour output | |
# | |
inigo:tmp> exit | |
exit | |
Script done, file is typescript | |
# http://www.pixelbeat.org/scripts/ansi2html.sh | |
inigo:tmp> cat typescript | ansi2html.sh > typescript.html | |
# OR using aha (brew install aha) | |
inigo:tmp> cat typescript | aha --black > typescript.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment