Forem

Nahue
Nahue

Posted on • Originally published at nahuelhds.dev on

1

Undoing unwanted commits on Git

I’m sure that once in a while, it just happens that you made a mistake. That’s ok. It happens.

But what if you commit the mistake. Several times. A headache for sure and so many other horrible things as well.

For those cases, I really recommend giving a read to On undoing, fixing, or removing commits in git. A document made by Seth Robertson.

It contains lot of resources for very incredible situations. I read it sometimes and it helps me out many others.


More at my technical blog

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay