GitLab You are not allowed to push code to this project

There is a bug in the Gitlab CE 10.6.4 I used. When an empty project is created, the owner account is used to set the local project as git pushand the error “You are not allowed to push code to this project” will be encountered.
Because it’s an empty project, it doesn’t even have a Master branch yet, so it’s not really the Protect Branch.
The cause of this problem is that the git push GitLab is reading another incorrect username in Manage Windows Credentials on Windows and is rejected by GitLab.
When git pushyou will be prompted for the user name and password. After you enter the owner’s user name and password, you will be able to successfully git push.
This should be a design flaw of GitLab, which is that GitLab assumes that on a GitLab, you always have one account to log in to.
Reference: https://gitlab.com/gitlab-com/support-forum/issues/207
If you encounter similar permissions problems with GitLab (too large or too small or denied), you can first check that the Credential of GitLab in Manage Windows Credentials is incorrect.


Read More: