Skip to content

Latest commit

 

History

History
64 lines (49 loc) · 1.88 KB

gituser.md

File metadata and controls

64 lines (49 loc) · 1.88 KB

Git User Configuration

.gitconfig

[user]
  name = "Changsu Im"
  email = "[email protected]"

GPG(GNU Privacy Guard)

# gpg --gen-key
gpg --full-generate-key
# pub   rsa3072 2021-02-08 [SC] [expires: 2023-02-08]
#       85B5FA0A8A67AA1A20FA7D4BE15D651143742DAD
# uid                      Test RealName <[email protected]>
# sub   rsa3072 2021-02-08 [E] [expires: 2023-02-08]

git config --global user.signingkey 85B5FA0A8A67AA1A20FA7D4BE15D651143742DAD
git config --global commit.gpgsign true
git config --global gpg.program gpg

export GPG_TTY=$(tty)
git commit
git log --show-signature -1
  1. Control Panel (제어판)
  2. Credential Manager (자격 증명 관리자)
  3. Generic Credentials (일반 자격 증명)
  4. Find github.com
  5. Edit or delete the entry accordingly.
  1. In Finder, search for the Keychain Access app.
  2. In Keychain Access, search for github.com.
  3. Find the "internet password" entry for github.com.
  4. Edit or delete the entry accordingly.

Deleting your credentials via the command line

git credential-osxkeychain erase
# host=github.com
# protocol=https
# > [Press Return]