Move the most recent commit(s) to a new branch with Git
Moving to an existing branch If you want to move your commits to an existing branch, it will look like this: You can store uncommitted edits to your stash before doing this, using git stash. Once complete, you can retrieve the stashed uncommitted edits with git stash pop Moving to a new branch WARNING: This method works because you … Read more