Skip to content

Instantly share code, notes, and snippets.

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 renanreismartins/2275c6f6f393bffb17332d7b4f09c3f8 to your computer and use it in GitHub Desktop.
Save renanreismartins/2275c6f6f393bffb17332d7b4f09c3f8 to your computer and use it in GitHub Desktop.
Configure personal and professional git
~ cat .gitconfig-personal
[user]
signingkey = XXXXXXXXXX
name = Renan Reis Martins de Paula
email = renanreismartins@gmail.com
[core]
sshCommand = "ssh -i ~/.ssh/id_rsa_personal"
➜ ~ cat .gitconfig-work
[user]
signingkey = XXXXXXXXXX
email = renan.reis@transferwise.com
name = Renan Reis Martins de Paula
➜ ~ cat .gitconfig
[commit]
gpgsign = true
[gpg]
program = gpg
[credential]
helper = store
[includeIf "gitdir:~/personal-projects/"]
path = ~/.gitconfig-personal
[includeIf "gitdir:~/projects/"]
path = ~/.gitconfig-work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment