|
|
|
|
|
by scott_karana
3413 days ago
|
|
`git revert` is perfectly suited for this, since it makes a new "inverse" commit of the changes. Your production deploys continue monotonically into the future as usual, and you now have version-controlled documentation of the rollback, instead of needing to maintain a separate mapping of production <-> code state. |
|
At my company rolling back is a matter of a minute or 2, while pushing a revert is more in the 5 to 10 minutes. Your mileage can definitely vary though.
However it requires all the shipped changes to be rollback compatible, which isn't that hard with a bit of experience.