- 设置公钥步骤请看 https://gitee.com/help/articles/4181
修改部分
配置后出现
1
Hi XXX! You've successfully authenticated, but Gitee.com does not provide shell access.
进入 .git/config
1
2
3[remote "origin"]
url = https://gitee.com/username/xxx.git
fetch = +refs/heads/*:refs/remotes/origin/*修改成
1
2
3[remote "origin"]
url =git@gitee.com:username/xxx.git
fetch = +refs/heads/*:refs/remotes/origin/*配置好之后还需要输入密码原因是 https 是一种安全传输模式默认需要输入密码