Skip to content

Rollback vs revert vs roll-forward

Rollback restores the previous state, revert undoes a commit with a new one, roll-forward fixes ahead with a new deploy.

Aspect

Rollback

Revert

Roll-forward

Direction

Back to prior state

Undo in history

Ahead with a fix

Speed

Minutes

Minutes (new commit)

Variable

Preserves history

N/A (state, not commits)

Yes (new commit)

Yes

Data risk

High if migrations

None

None

Use case

Failing deploy

Buggy commit

Recoverable bug