Sometimes I find myself in the following situation: I work on a branch (say, a wizard), and I edit some files, but when it comes time to commit, I understand that I would prefer to transfer a new branch (say, experimental). In other words, the old branch (master) should remain intact and a new branch should be created that would look like this:
.. -- master -- new commit
What is the easiest way to do this?
I am currently committing an old branch, then creating a new branch and finally reset the old branch. But it is really ugly.
source share