This uses a Soft Reset to revert the commit, leaving the commit modifications as local working copy changes:
git reset --soft HEAD^
or
git reset --soft HEAD~1
| import com.fasterxml.jackson.annotation.JsonValue | |
| enum class AccountStatus(@JsonValue val text: String) { | |
| PENDING("Pending"), | |
| ACTIVE("Active"), | |
| EXPIRED("Expired"), | |
| CANCELLED("Cancelled"); | |
| companion object { | |
| private val valuesByText = values().associateBy { it.text } |