f0i f0i - 6 days ago 4x
Git Question

GPG sign all git commits without stash

git 2.0 has the config option

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?


This is alias territory:

git config --global alias.stashq '-c commit.gpgsign=false stash'