Skip to content

Instantly share code, notes, and snippets.

@raedatoui
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raedatoui/010ec9ba41aaaec0789a to your computer and use it in GitHub Desktop.
Save raedatoui/010ec9ba41aaaec0789a to your computer and use it in GitHub Desktop.
Save colorized git graph from terminal to html file
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