GIT and OpenSSH with multiple identities

How to set up GIT and OpenSSH for multiple identities, also with PaaS like GitHub/Gitlab etc.

If you use your computer in multiple contexts (private, work, multiple client projects), you might run need to use different identities for these contexts. For git this usually boils down to

  • different SSH keys for remote pull/push
  • different names and e-mail-addresses for the git commit log

This can be a pain to work with – after trying multiple solutions I found on the web (or puzzle pieces thereof), I created a combination that works completely automatic once it’s set up, and that I think might be worth sharing.

[Read More]
git  github  ssh