diff --git a/.gitconfig b/.gitconfig index dd68696..052ed2d 100644 --- a/.gitconfig +++ b/.gitconfig @@ -20,7 +20,15 @@ [filter "media"] clean = git-media-clean %f smudge = git-media-smudge %f +[gpg] + # Windows specific config - Uncomment to use. + #program = C:\\Program Files (x86)\\GnuPG\\bin\\gpg.exe +[commit] + # Set to true if commits should be signed by default + gpgsign = false [user] + # Insert ID for GPG key being used for signing git commits + #signingkey = useConfigOnly = true [push] default = matching @@ -218,3 +226,4 @@ serve = !git daemon --reuseaddr --verbose --base-path=. --export-all ./.git start = !git init && git commit --allow-empty -m \"Initial commit\" snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}" + resign = "!re() { git rebase --exec 'git commit --amend --no-edit -n -S' -i $1; }; re"