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
If gnupg2 and gpg-agent 2.x are used, be sure to set the environment variable GPG_TTY.
GPG_TTY
export GPG_TTY=$(tty)
See GPG’s documentation about common problems.