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'


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM