赞
踩
有一段时间没有用码云了,当输入 git push -u origin master命令出现Please make sure you have the correct access rights and the repository exists.错误
总思路: 重新生成新的 ssh秘钥,再把新的秘钥添加到git服务器的ssh公钥上。
#设置用户名:
git config --global user.name "Yfallon"
#设置用户名邮箱
git config --global user.email "15035845099@163.com"
#查看设置
git config --list
在下载好的Git中的bin目录下
C:\Program Files\Git\bin
打开bash.exe
输入命令:
ssh-keygen -t rsa -C "username" (注:username为你git上的用户名)
ssh-keygen -t rsa -C "xxx@163.com"
出现的界面一路回车就行
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。