I added this npm script to my package.json file:
"gitlog" : "git log --graph --decorate -30 --all --date-order --date=format:'%Y-%m-%d %H:%M:%S' --pretty=format:'%C(cyan)%h%Creset %C(black bold)%ad%Creset%C(auto)%d %s'"
But when I type npm run gitlog, I get the error: fatal: Invalid object name '%H'.
I tried putting the command in back ticks but got another error. Is there some escaping I have to do on this command or how can I get it to work?