将学习变成乐趣,一直在路上
每天1990

导航

 

问题:

git push代码提示没有权限remote: You are not allowed to push code to this project.

首先判断当前git账号是否真的有该工程的操作权限

1、没有权限

在git工程下加上权限

 

2、有权限

我就是属于这个情况,

 

解决方法:重置git的认证设置

git config --system --unset credential.helper

然后在git push的时候重新输入git的账号和密码即可

 

备注:每次操作都输入账号密码比较麻烦,输入下面命令保存账号密码(第2次生效)

git config credential.helper 'cache --timeout=3600'
posted on 2020-04-09 11:09  每天1990  阅读(9190)  评论(0编辑  收藏  举报