Use gpg2 as gpg replacement OSX

Be aware that GnuPG 2 sometimes has slightly different ouput, especially with GnuPG 2.1. This will usually not be a problem, but in rare cases weird things might happen.

Individually configure the gpg binary to be used per application. For example, git has the gpg.program option. From man gpg-config:

gpg.program

Use this custom program instead of "gpg" found on $PATH when making or verifying
a PGP signature. The program must support the same command-line interface as
GPG, namely, to verify a detached signature, "gpg --verify $file - <$signature"
is run, and the program is expected to signal a good signature by exiting with
code 0, and to generate an ascii-armored detached signature, the standard input
of "gpg -bsau $key" is fed with the contents to be signed, and the program is
expected to send the result to its standard output.

Use git config --global gpg.program gpg2 to choose GnuPG 2 for your user, or replace --global with --system to change the setting for all users.