/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

phili.pe
| | zzamboni.org
2.3 parsecs away

Travel
| | 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...
| | stevenhicks.me
1.9 parsecs away

Travel
| | Work projects require git commits to be signed with my work email; I'd like commits on my personal projects to be signed with my personal email. The solution: conditional includes in my .gitconfig!
| | raphael.medaer.me
2.2 parsecs away

Travel
| | 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,...
| | jinyuz.dev
19.5 parsecs away

Travel
| 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.