Skip to content

Git

Initial Setup

Local Project Config

git config --local user.name "John Doe"
git config --local user.email "john.doe@domain.com"
git config --local user.signingkey A000000000000000

Note

GitHub enables a private email to hide your email. Prefer to use that email to hide your real email.

It can be found in Settings > Emails.

Global Project Config

git config --global user.name "John Doe"
git config --global commit.gpgsign true

View Config

git config --get user.email
git config --get --global user.email