I was in the middle of doing some long task and have already made several commits to local repo when my chief came in and asked to fix a small bug.
I've fixed it and need to deploy it to production now. However, my work from the long task is unfinished and untested, so it shouldn't go into prod. Changes from small bugfix and from long task affect different files in my repo.
How should I commit this small bugfix then push it (and only it) to prod and then recommit long task on top of the small commit (so that the history will be the same as in prod)?