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: git checkout existingbranch git merge master git checkout master git reset –hard HEAD~3 # Go back 3 commits. You *will* lose uncommitted work. git checkout existingbranch You can store uncommitted edits to your stash … Read more