git - Create a new branch - Stack Overflow There is a new branch B branching off of master, which contains both the committed and untracked changes from branch A First, note: When you use git checkout to checkout a different branch or commit, or when you execute commands that manipulate other branches, whatever was committed on the branch commit you previously had checked out is not