~/.gitconfig 파일의 user 섹션에 signingkey 값을 추가하고, 자신의 키 아이디를 입력
git commit에 -S 옵션을 붙이면 커밋할 때 자동으로 비밀 키로 서명
일일이
S 옵션을 붙이는 게 귀찮으므로 gpgsign true 설정Example
~/.gitconfig[user] name = seonglae email = sungle3737@gmail.com signingkey = EDFF40ECBFA9CD48 [commit] gpgsign = true
git config --global user.signingkey EDFF40ECBFA9CD48 git config --global commit.gpgsign true
gpg --import ~/.ssh/gpg/seonglae.key gpg --list-secret-keys --keyid-format long
GnuPG 사용법
GnuPG, the GNU Privacy Guard
https://johngrib.github.io/wiki/gpg/


Seonglae Cho