I’ve recently encountered the issue that Gitlab returns the error Your git username is inconsistent with Gitlab account name
whenever I try to push anything.
However, I don’t get this error when I use the web interface directly for the same action. Git config and name have not been changed and are the same as in the Gitlab settings, which is the suggested solution in a similar problem mentioned in this related question.
What could cause this error and how could I solve it?