Skip to content

Instantly share code, notes, and snippets.

@drincruz
Created June 6, 2022 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drincruz/2183289bc557856cd7a33ba2ec93ca9a to your computer and use it in GitHub Desktop.
Save drincruz/2183289bc557856cd7a33ba2ec93ca9a to your computer and use it in GitHub Desktop.
Git configs to support multiple environments and separate files
[core]
excludesfile = ~/.gitignore_global
[user]
name = Adrian Cruz
email = my-work-email@work.com
signingkey = work-signing-key
[gpg]
program = /usr/local/bin/gpg
# Include custom .gitconfig if in personal github dir
[includeIf "gitdir:~/src/github.com/drincruz/"]
path = ~/src/github.com/drincruz/.gitconfig.personal
[user]
email = "personal-email@email.com"
signingkey = "personal-signing-key"
# Node
npm-debug.log
# Mac
.DS_Store
# WebStorm
.idea/
# vi
*~
# General
log/
*.log
*.bak
*.swp
# Python
venv/
# Personal Tmp Space
ajc.tmp*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment