Gitlab pipeline failed

Why this error comes?
How it can be resolved
remote: error: cannot lock ref ‘refs/heads/master’: is at b98cfb3b28eb4cab01fa58d3cdb72a51f1c1e0b1 but expected a464a6b0a6e3eee5baeb1c39b91d6a9e6b8cb0bc

! [remote rejected] master -> master (failed to update ref)
error: failed to push some refs to