Learned that lesson the hard way ... well, what I had meant was git reset --soft, what I had typed while tired was git reset --hard.
Either way it gave me a chance to re-factor the code, and do it better which ultimately ended up being MUCH better anyway.