One of best practices in my opinion when using git is enabling GPG signing for your commit.
And one of my favorite tools to commit my code in terminal environment is Lazygit. However, by default, it doesn’t work if GPG signing is enabled.
After trying multiple solutions, I found a simple solution to resolve this issue.
You can add this config to your ssh config file (default path is ~/.ssh/config):
Note: You have to add config to the SSH key which will be used for signing the git commits.
After that, the config should look like below:
Hope this helps you out!