How to pick a user when cloning from GitHub via SSH: https://stackoverflow.com/a/10056098/12423765
> For example, suppose you had two GitHub accounts: `foo` and `bar`. Your ssh key for `foo` is `~/.ssh/foo_github_id` and your ssh key for `bar` is `~/.ssh/bar_github_id`. You want to access `
[email protected]:foo/foo.git` with your `foo` account and `
[email protected]:bar/bar.git` with your `bar` account. You would add the following to your `~/.ssh/config`:
```
Host gh-foo
Hostname github.com
User git
IdentityFile ~/.ssh/foo_github_id
Host gh-bar
Hostname github.com
User git
IdentityFile ~/.ssh/bar_github_id
```
> You would then clone the two repositories as follows:
```
git clone gh-foo:foo/foo.git # logs in with account foo
git clone gh-bar:bar/bar.git # logs in with account bar
```