I've created some changes to a git repo, and committed them to master (I have NOT pushed the changes up to GitHub, however). What I need to do now, is create a new branch, and move my commits over to this new branch. The changes are quite large and so manually redoing the changes on a new branch is not possible - hopefully there is some set of commands which will rewind master to before my commits, move my commits onto a new branch, and then push these up.
I did search for other questions but I didn't see any that exactly fitted my situation, so wanted to get an exact answer.
Thanks in advance!