Install gpg with `brew install gpg` and configure git to use it.
Then SourceTree keeps bothering
error: gpg failed to sign the data
fatal: failed to write commit object
While `git commit` in terminal doesn't
I have set the GPG program path `/usr/local/Cellar/gnupg/2.1.23/bin`
If I `ln -s gpg gpg2`, the problem solves