home archives github knives links
tags git ssh
categories
only title title and content
git免验证

法一

详细

  1. 设置全局

  2. 生成ssh key

ssh-keygen -t rsa -C "1197225628@qq.com"
  1. github.com$\to$Settings$\to$SSH and GPG keys$\to$New SSH key,将./.ssh/id_rsa.pub中的文本复制过去

  2. 检查

ssh -T git@github.com
  1. 不知道怎么办了(修改remote为ssh?)

法二

git config --global credential.helper store

取消自动保存(方便多个账号)

git config --global credential.helper ""