1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

fix: force git commit signing the proper way

This commit is contained in:
oddlama 2023-09-30 19:39:11 +02:00
parent 8a86a2992f
commit ffbef38f96
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A

View file

@ -43,6 +43,7 @@
init.defaultBranch = "main";
merge.conflictstyle = "diff3";
mergetool.prompt = true;
commit.gpgsign = true;
pull.rebase = true;
push.autoSetupRemote = true;
};
@ -51,7 +52,6 @@
s = "status";
tags = "tag -l";
t = "tag -s -m ''";
rebase = "rebase --gpg-sign";
fixup = ''!f() { TARGET=$(git rev-parse "$1"); git commit --fixup=$TARGET ''${@:2} && EDITOR=true git rebase -i --gpg-sign --autostash --autosquash $TARGET^; }; f'';
# An alias that uses the previous commit message by default.
# Useful when you mess up entering the signing password and git aborts.