git commit -a git checkout -b before-complex-operation ...
To get back to where you were, git checkout before-complex-operation
git commit -a git checkout -b before-complex-operation ...
To get back to where you were, git checkout before-complex-operation