This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
提交运行git push时报错,提示Permission denied (publickey)...
https://blog.csdn.net/wyp_comeon/article/details/91388107
# 在E:\Work\dsMin\下右键,Git Bash ,然后在窗口中执行
ssh-keygen -t rsa -C "10402852@qq.com"
然后三个回车搞定。
ssh -v git@10.10.6.203
ssh-agent -s
ssh-agent bash
ssh-add /c/Users/Administrator/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub
上述命令执行后id_rsa.pub文件内容将输出到终端,复制里面的密钥(内容一般是以ssh-rsa 开头,以gitee账号的注册邮箱结尾的,全部复制下来)
ssh -T git@10.10.6.203
git pull
git fetch
git config --global core.autocrlf false