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

问题:

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'
原文地址:https://www.cnblogs.com/meitian/p/12665494.html