Background:
i have a system, i use the same for both hobby and office projects. I have a different github repo for both places. Ideally i would want to commit with different user names.
Hence i create repos and local user names: git config --local user.name "Local Name"
The trouble arises while pushing the same ssh keys do not work for both the repos. In case if i change the ssh key for one repo, it creates me a trouble to push to the other repo using the same ssh keys. How can this be resolved?
Assuming you are using Linux / Unix, you can configure your
.ssh/configfile to point to 2 different identies