A reminder for Future Me of how I handle having multiple accounts with Git
- Configure separate
Host
entry in~/.ssh/config
to use for each identity- E.g.
corp-github.aaakk.us.kg
- E.g.
- Clone the repo using the appropriate Host, or update the remote repo URL for an existing repo
git clone [email protected] ...
- Configure the repository to use the appropriate committer name and email for the repo
- `git config user.name "Ian Marcinkowski"
- `git config user.email "[email protected]"