Source: https://stackoverflow.com/questions/39494631/gpg-failed-to-sign-the-data-fatal-failed-to-write-commit-object-git-2-10-0 Auto-sign commits on MacOS (Globally and with different IDEs): Get your signingkey in this way. $ brew install gnupg gnupg2 pinentry-mac $ git config --global user.signingkey <YOUR_SIGNING_KEY> $ git config --global commit.gpgsign true