git push 提示'You are not allowed to push code to this project'

提示信息:
git1.pnggit

确认过用户名, 邮箱设置, 提交权限以及sshKey没问题后, 再用 ssh -T git@xxx.com测试仍然不通vim

最后解决:
当前项目下, vim .git/config打开配置,将以下高亮行本来的url = http://~ 替换成url = git@git.~ssh

git2.png

相关文章
相关标签/搜索