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'

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

ReNFT Test Network Tutorial(Second Re-NFT Airdrop Announcement)

An Overview of Google Firebase | What is Google Firebase?

Talk Given at null community Bangalore Chapter about Identity and Access Management in Modern Web…

Beta is now live! — Time to grab a Netizen.

Host a static JSON file with bunny.net and keep it up to date using serverless functions

Python Multiprocessing and Elasticsearch Ingest

5 Skills That Make A Great Software Engineer

TOP 10 PROGRAMMING LANGUAGES USED IN AI CHATBOT BUILDING

TOP 10 PROGRAMMING LANGUAGES USED IN AI CHATBOT BUILDING

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
Privalov Vladimir

Privalov Vladimir

More from Medium

Basics Git Commands to begin with

Git Configuration