You can also do the work in your main branch, stash those changes, and THEN create the new branch. When you start work in the new branch, git stash pop, and then commit those changes.