GitLab rejects force push on not protected branches

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

1

Checkout the gitlab log files.

Also what is the message from git when you try to push ?

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like