|
You are here |
phili.pe | ||
| | | | |
raphael.medaer.me
|
|
| | | | | I work on many different Git repositories. For each of them I have a particular email address and sometimes a GPG key. Even the Git flow might be different; always --no-ff (or not), pull --rebase instead of merge,... | |
| | | | |
garrit.xyz
|
|
| | | | | Generalist software developer writing about scalable infrastructure, fullstack development and DevOps practices. | |
| | | | |
zzamboni.org
|
|
| | | | | via http://www.codinginahurry.com/2011/02/05/three-levels-of-git-config/ Very nice explanation, viacoding in a hurry There are 3 levels of git config; project, global and system. project: Project configs are only available for the current project and stored in .git/config in the project's directory. global: Global configs are available for all projects for the current user and stored in ~/.gitconfig. system: System configs are available for all the users/projects and stored in /etc/gitconfig. Create a pr... | |
| | | | |
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. | ||