Reset on master branch

git reset --hard <commit_hash>
git clean -f -d
git push -f origin main
remote: GitLab: You are not allowed to force push code to a protected branch on this project.To gitlab.cleverbots.ru:cleverbots/hills_customer_care.git! [remote rejected] main -> main (pre-receive hook declined)error: failed to push some refs to 'gitlab.cleverbots.ru:cleverbots/hills_customer_care.git'

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store