We have our own GitLab server running and have imported an older project into it. This project has a strange behavior, which seems not to be the default for projects on the gitlab.com server: If a merge request requires a local rebase, it is not possible to force push git push —force-with-lease
to the remote branch after the rebase.
! [remote rejected] feature_branch -> feature_branch (non-fast-forward)
error: failed to push some refs to 'server.de:group/project.git'
The remote branch is unprotected, and the force push should work in principle. It seems not related to any GitLab configuration but the configuration of the old GitLab project.
Does anyone know how to reconfigure the remote configuration? I don't even know what to look for. A colleague of mine found this answer here:
https://www.reddit.com/r/git/comments/50td21/comment/d76urb5/
But I don't find (can't read) this file on the remote server. Any help would be appreciated.