Skip to content

Instantly share code, notes, and snippets.

@chengjianhua
Created October 12, 2016 09:59
Show Gist options
  • Save chengjianhua/bb44b318d81e1175754361c44fa7fe05 to your computer and use it in GitHub Desktop.
Save chengjianhua/bb44b318d81e1175754361c44fa7fe05 to your computer and use it in GitHub Desktop.
ssh config
#### 以下为多个github 账户设置参考 ####
# first github user([email protected]),注意User项直接填git,不用填在github的用户名
Host genedock.github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_genedock
# gitlab
Host gitlab.com
HostName gitlab.com
User gitlab
IdentityFile ~/.ssh/id_rsa_gitlab
# second github user([email protected])
# 建一个gitcafe别名,新建的帐号使用这个别名做克隆和更新
Host chengjianhua.github.com
HostName github.com
User chengjianhua
IdentityFile ~/.ssh/id_rsa_chengjianhua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment