解决gitlab的You are not allowed to push code to project坑

310 阅读1分钟

如果你push到仓库时出现You are not allowed to push code to project的问题,可以尝试以下方法解决

1、确认你在工程里的角色是developer及以上

2、确认你有ssh秘钥

ssh秘钥配置方式 blog.csdn.net/lizhiqiang1…

3、清空你的项目账密并重置

A. 清空账密

#git config --system --unset credential.helper
#git config --global credential.helper store
#git config --list

B. 删除的文件http.sslcainfo内的文件

C. 重置账密

#git config --global --unset configname

D. 尝试推送——成功!