Updated gitcommit script to watch the output of git commit