git 2.0 has the config option commit.gpgsign
which will sign all commits.
This will also apply for git stash
and will ask for the password of my gpg key.
Is ther a way to automatically sign all commits, tags,... but exclude stashes?
To sign all commits by default in any local repository on your computer, run git config --global commit. gpgsign true .
You can disable this by running git config commit. gpgsign false This sets the configuration locally instead of globally. Save this answer.
This is alias territory:
git config --global alias.stashq '-c commit.gpgsign=false stash'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With