You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dsMin/Document/手工配置GIT更新.txt

28 lines
644 B

This file contains ambiguous Unicode characters!

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
git config --global core.autocrlf false