Skip to main content

← Git

Undo a pushed commit

medium

A bad commit is already pushed to a shared branch. What is the safe way to undo it?

Your answer

Answers

Stuck?

Open hints one at a time. The write-up explains a full solution.

Discussion

Ask a question or share a tip. Please don’t post full solutions. Posts appear once a moderator approves them.

No posts yet.