~/.gitconfig
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = Ganesh Satpute
email = your-email@company.com
[includeIf "gitdir:~/code/personal/"]
path = ~/code/personal/.gitconfig
~/code/personal/.gitconfig
[user]
name = Ganesh Satpute
email = personal@gmail.com
Is this required?
~/.ssh/config
Host github.com
User git
IdentityFile ~/.ssh/id_ed25519
Host github.com-github-personal
HostName github.com
User git
IdentityFile ~/.ssh/github-personal
You need to have two keys configured on respective Github accounts and be present in .ssh
directory.