Git
Initial Setup
Local Project Config
git config user.name "John Doe"
git config user.email "john.doe@domain.com"
git config 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
# Just add a --global flag
git config --global user.name "John Doe"
git config --global commit.gpgsign true
View Config
Tracking Modifiers
Ignore Locally
- Ignore locally without chaning
.gitignorefile. - Useful when some files start showing up due to modified whitespace.
- Also useful for config files.