Appearance
环境变量配置
电脑 -> 属性 -> 高级系统设置 -> 环境变量 -> 系统变量 -> Path -> 编辑 -> 新建
C:\Program Files\Git\cmdSSH Key
sh
ssh-keygen -t ed25519 -C "your_email@example.com"Settings -> SSH and GPG Keys -> New SSH Key
Title 随意,Key 内容为 id_ed25519.pub 中的内容
同时支持 github 和 gitlab
sh
ssh-keygen -t ed25519 -C "your_gitlab_email@example.com" -f C:\Users\zmx\.ssh\id_ed25519_gitlab不同仓库使用不同密钥
C:\Users\zmx.ssh 下添加 config 文件
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519
Host your_gitlab_email.example.com
HostName your_gitlab_email.example.com
User git
IdentityFile ~/.ssh/id_ed25519_gitlab