DEV Community

Pheak Pheasa
Pheak Pheasa

Posted on

To reset head of your branch comment

  1. Checkout to branch you want to reset.

  2. Using command to reset: git reset --hard <commit-hash>

  3. Force Push to Remote (if necessary): git push origin UAT --force

Top comments (0)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay