I followed few articles over the pretty attributes on Git 2.10 release note. Going through which upgraded the git to 2.10.0 and made changes to global .gitconfig
.gitconfig
On OS X, using gnupg2 via brew I just had to kill the gpg agent, happens sometimes:
gnupg2
pkill -9 gpg-agent
And set the env variable if needed:
env
export GPG_TTY=$(tty)
See Common GPG problems also and this answer here too.