gitconfig: git config --global format.signOff true

Summary:
Ref [man git config](https://git-scm.com/docs/git-config#Documentation/git-config.txt-formatsignOff).

Also disables aliases with `-s` now that config takes over

Signed-off-by: Yongmin Hong <revi@omglol.email>

Test Plan: Apply patch and `git cm`

Reviewers: O1 revi & automations, revi

Reviewed By: O1 revi & automations, revi

Differential Revision: https://issuetracker.revi.xyz/D100
This commit is contained in:
revi 2024-05-19 15:06:55 +09:00
parent 92dc476d6f
commit 761a5d6c1f
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94
2 changed files with 7 additions and 6 deletions

View file

@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
[alias] [alias]
co = checkout co = checkout
cm = commit -s cm = commit
st = status st = status
br = branch -v br = branch -v
fa = fetch --all fa = fetch --all
@ -21,11 +21,10 @@
por = push origin master por = push origin master
pon = push origin main pon = push origin main
amend = commit --amend amend = commit --amend
amends = commit --amend -s cmt = commit -S
cmt = commit -S -s amends = commit --amend -S
amendss = commit --amend -S -s acmt = commit -a -S
acmt = commit -a -S -s acm = commit -a
acm = commit -a -s
fup = fetch upstream fup = fetch upstream
com = !echo 'ERROR: use cor for master, and con for main.' com = !echo 'ERROR: use cor for master, and con for main.'
comr = checkout master comr = checkout master

View file

@ -22,6 +22,8 @@
smudge = git-lfs smudge -- %f smudge = git-lfs smudge -- %f
process = git-lfs filter-process process = git-lfs filter-process
required = true required = true
[format]
signOff = true
[sendemail] [sendemail]
from = 'Yongmin Hong <revi@omglol.email>' from = 'Yongmin Hong <revi@omglol.email>'
smtpserver = smtp.fastmail.com smtpserver = smtp.fastmail.com