Our GitLab currently rejects force push on not protected branches in a single project, but I don't can't find the issues (I removed already all protection for tags and branches to test it). Is there any log file, where I can find the reason? Force push is working for another project on the same instance of GitLab, so it must be a project related configuration.
2 Answers
Check denyNonFastforwards = true in config of gitlab. This is preventing git to push forced updates.
git push --force
You can access git repository and set
git config receive.denynonfastforwards false
1Checkout the gitlab log files.
Also what is the message from git when you try to push ?
1