Skip to content

Instantly share code, notes, and snippets.

@chuyik chuyik/README.md
Last active Jun 11, 2017

Embed
What would you like to do?
用 Deploy Key 或者自定义 SSH Key 下载某个项目

配置 ~/.ssh/config

Host github.com-alias-name
  HostName github.com
  IdentityFile ~/.ssh/xxx_key  # private key

下载代码

git clone git@github.com-alias-name:owner/repo.git

修改代码文件夹的 .git/config

[remote "origin"]
    url = git@github.com-alias-name:owner/repo.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.