I have started working on a feature branch and made some changes and commit. But I have not pushed these changes to remote tracking branch. But now I want to create a separate bug fix branch so that I can create pull request. How can I create a new branch with all commit history i made on current branch without pushing.
I would like to add commit graph for more clarity. A---B---C---D---E---G
So I have made changes on branch where A was already on remote and made local commits BCDEG. Now I want new branch staring from A commit with all the local commit BCDEG so that for review I can create new pull request on existing feature branch commit A.