I have a server with a bare git repository that I push to for live deployment. It has a simple post-receive
hook that updates my server code with the latest on master
.
I sometimes need to revert to a specific past commit when bugs are found on the production server (I test myself locally, but I don't catch everything). Is there a nice* way to revert to a past commit with this setup?
*By nice I mean a one-liner like pushing to the bare repository: git push prod master