Tired of just having the same old output from your git commits?
Have you ever wanted to spice up your logs with some ASCII art?
This repo can help!
-
Clone or download this repo.
-
Copy the
post-commit
script into your.git/hooks
folder for any/all repos you want to use this with, or in your global hooks folder if that's how you roll. -
Run
chmod 755 post-commit
(or however you prefer to permission it) in the folder where you put the script to permisison it to run. -
Move the
.ascii-art
folder to your desktop. -
Make a new
git commit
and be rewarded with ASCII art in your terminal!
This work is 100% dependent on the hard work from https://github.com/asweigart/asciiartjsondb If you want to say thanks in a meantingful way, please consider buying one of his books
Also, thanks to Matthew Hudson for his inspirational site GitHooks.com. Without the list view of possible hooks, this repo would not exist.
post-commit-art ~ $git add README.md
post-commit-art ~ $git commit -m 'updated README'
r
ain
rai
nrain
rainrai
nrainrain
ainrainrain
rainrainrainr
ainrainrainrain
rainrainrainrainr
ainrainrainrainrainra
inra nrainrainrainrainrai
nrain inrainrainrainrainrain
rain nrainrainrainrainrainrai
nrai inrainrainrainrainrainrain
rai inrainrainrainrainrainrainr
rain nrainrainrainrainrainrainr
rainr nrainrainrainrainrainrai
nrain ainrainrainrainrainrain
rainrainrainrainrainrainr
rainranirainrainrainr
ainrainrain
[main de27b65] updated README
1 file changed, 2 insertions(+)
post-commit-art ~ $git add README.md
post-commit-art ~ $git commit -m 'updated README again'
....
.'' .'''
. .' :
\\ .: :
\\ _: : ..----.._
\\ .:::.....:::.. .' ''.
\\ .' #-. .-######' # '.
\\ '.##'/ ' ################ :
\\ ##################### :
\\ ..##.-.#### .''''###'.._ :
\\ :--:########: '. .' :
\\..__...--.. :--:#######.' '. '. :
: : : : '':'-:'':':: . '. .'
'---'''..: : ': '..'''. '. :'
\\ :: : : ' ''''''. '. .:
\\ :: : : ' '. ' :
\\:: : : ....' ..: ' '.
\\:: : : .....####\\ .~~.:. :
\\':.:.:.:'#########.===. ~ |.'-. . '''.. :
\\ .' ########## \ \ _.' '. '-. '''.
:\\ : ######## \ \ '. '-. :
: \\' ' #### : \ \ :. '-. :
: .'\\ :' : : \ \ : '-. :
: .' .\\ ' : : :\ \ : '. :
:: : \\' :. : : \ \ : '. :
::. : \\ : : : ; \ \ : '.:
: ': '\\ : : : : \:\ : ..'
: ' \\ : : ; \| : .'''
'. ' \\: :.''
.:..... \\: : ..''
'._____|'.\\......'''''''.:..'''
\\
[main dbde047] updated README again
1 file changed, 3 insertions(+), 1 deletion(-)
post-commit-art ~ $