revert a feature in git for temporary

I pushed my latest feature but I found there’s a critical bug. I want to rollback. So I do git checkout 12345 I got detached HEAD, I don’t know how to proceed. Is checkout previous commit even a proper way to revert a feature?

Leave a Reply

Your email address will not be published. Required fields are marked *