git config file

 ssh-keygen -t ed25519 -C "xxx@example.com"
如果自定义.pub文件名
添加以下文件:
cat C:/Users/.ssh/config


Host github.com
HostName github.com
User git
IdentityFile C:/Users/.ssh/new-git

原文地址:https://www.cnblogs.com/lajiao/p/15247897.html