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 push
and 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 push
you 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:
- Git push you are not allowed to upload merges
- You are not allowed to upload merges in Git push
- 【Unity 3D】Because you are not a member of this project this build will not access Unity services.
- Gitlab service migration and gitlab administrator password retrieval
- Unable to load file D:: program files (x86) node-v16.4.0-win-x861 because scripts are not allowed to run on this system.
- ValueError: Integers to negative integer powers are not allowed.
- Module build failed Error Plugin/Preset files are not allowed to export objects, only functions (How to Fix)
- Android studio push project to GitHub
- error: src refspec master does not match anyerror: failed to push some refs to
- Annotations are not allowed here
- yaml.scanner.ScannerError: mapping values are not allowed here
- git push error failed to push some refs to solution
- Docker encountered a problem 4: yaml: Line 1: mapping values are not allowed in this context
- How to Fix error: ‘for’ loop initial declarations are only allowed in C99 mode
- You may need an appropriate loader to handle this file type, currently no loaders are configured to
- Failed to set session cookie. Maybe you are using HTTP instead of HTTPS to access phpMyAdmin.
- nbconvert failed: xelatex not found on PATH, if you have not installed xelatex you may need to do so
- GitHub upload failed: git push error: failed to push some refs to exception handling
- This application has no explicit mapping for /error, so you are seeing this as a fallback (How to Fix)
- Host is not allowed to connect to this MySQL server