how to create a new branch with some local modify code example Example: commit unstaged changes to new branch git checkout -b new_branch_name