Git Tips
Use multiple git accounts
[init]
defaultBranch = main
[includeIf "gitdir:/home/username/localfolderOne/"]
path = /home/username/localfolderOne/.gitconfig
[includeIf "gitdir:/home/username/localfolderTwo/"]
path = /home/username/localfolderTwo/.gitconfig
[safe]
directory = /docs[user]
name = First Last
email = first.last@domain.com
signingkey = ID-OF-GPG-KEY
[gpg]
program = gpg
[commit]
gpgsign = true
[init]
defaultBranch = mainResolve user conflicts when pushing
Temporary solution
More permanent solution
Last updated