Last active
November 22, 2023 18:12
-
-
Save renanreismartins/2275c6f6f393bffb17332d7b4f09c3f8 to your computer and use it in GitHub Desktop.
Configure personal and professional git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ cat .gitconfig-personal | |
[user] | |
signingkey = XXXXXXXXXX | |
name = Renan Reis Martins de Paula | |
email = [email protected] | |
[core] | |
sshCommand = "ssh -i ~/.ssh/id_rsa_personal" | |
➜ ~ cat .gitconfig-work | |
[user] | |
signingkey = XXXXXXXXXX | |
email = [email protected] | |
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