|
You are here |
www.micah.soy | ||
| | | | |
128bit.io
|
|
| | | | | GPG stands for GNU Privacy Guard, it's a public-key cryptography that can be used to digitally sign items like commits in Git. GPG provides a lot more functionality, but let's go into why you would want to digitally sign your Git commits. Git does not have any way to validate the author of a commit. When setting up a Git client on your system you are able to use any email address you desire. | |
| | | | |
danielms.site
|
|
| | | | | I build things and drink coffee. | |
| | | | |
pickard.cc
|
|
| | | | | ||
| | | | |
jinyuz.dev
|
|
| | | Suppose that you have a full time job at Amazon, and you want to separate your git commit emails from Amazon and your personal projects. Setting up ~/.gitconfig $ touch ~/.gitconfig For our personal projects, we will use the ~/.gitconfig file with the following content: [user] name = James Banned email = james.banned@gmail.com [includeIf "gitdir:~/Work/"] path = ~/.gitconfig.work The includeIf basically means that include this config if I'm inside the ~/Work/ directory. | ||